From: Lucas Stach Date: Wed, 18 Jul 2012 14:07:28 +0000 (+0200) Subject: st/xorg: remove superfluous memset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9de16ac0a838a98d71e6abf1f82ccee642073f40;p=mesa.git st/xorg: remove superfluous memset exaDriverAlloc() uses calloc, which already initialises pExa to zero. Signed-off-by: Lucas Stach --- diff --git a/src/gallium/state_trackers/xorg/xorg_exa.c b/src/gallium/state_trackers/xorg/xorg_exa.c index c8c57ff840a..11985c547fd 100644 --- a/src/gallium/state_trackers/xorg/xorg_exa.c +++ b/src/gallium/state_trackers/xorg/xorg_exa.c @@ -1001,8 +1001,6 @@ xorg_exa_init(ScrnInfoPtr pScrn, Bool accel) goto out_err; } - memset(pExa, 0, sizeof(*pExa)); - pExa->exa_major = 2; pExa->exa_minor = 2; pExa->memoryBase = 0;