projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70f0eda
)
st/xorg: remove superfluous memset
author
Lucas Stach
<dev@lynxeye.de>
Wed, 18 Jul 2012 14:07:28 +0000
(16:07 +0200)
committer
Michel 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
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/xorg/xorg_exa.c
b/src/gallium/state_trackers/xorg/xorg_exa.c
index c8c57ff840a9f14345a92fe5087eedc37a9be145..11985c547fd7f05bd5eb1dfc7439e007f1747003 100644
(file)
--- 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;