st/xorg: remove superfluous memset
authorLucas Stach <dev@lynxeye.de>
Wed, 18 Jul 2012 14:07:28 +0000 (16:07 +0200)
committerMichel Dänzer <michel.daenzer@amd.com>
Wed, 18 Jul 2012 15:19:07 +0000 (17:19 +0200)
exaDriverAlloc() uses calloc, which already initialises pExa to zero.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
src/gallium/state_trackers/xorg/xorg_exa.c

index c8c57ff840a9f14345a92fe5087eedc37a9be145..11985c547fd7f05bd5eb1dfc7439e007f1747003 100644 (file)
@@ -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;