Remove useless memset after calloc

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Matt Turner 2012-09-04 23:10:52 -07:00
parent 6bda027e01
commit 52789496a7
2 changed files with 0 additions and 2 deletions

View File

@ -850,7 +850,6 @@ driCreateScreen(int screen, struct glx_display *priv)
if (psc == NULL)
return NULL;
memset(psc, 0, sizeof *psc);
if (!glx_screen_init(&psc->base, screen, priv)) {
free(psc);
return NULL;

View File

@ -636,7 +636,6 @@ driswCreateScreen(int screen, struct glx_display *priv)
if (psc == NULL)
return NULL;
memset(psc, 0, sizeof *psc);
if (!glx_screen_init(&psc->base, screen, priv)) {
free(psc);
return NULL;