Remove more superfluous if(p!=NULL) checks around free(p).

This patch has been generated by the following Coccinelle semantic patch:

@@
expression E;
@@
- if (E != NULL)
-   free(E);
+ free(E);

Signed-off-by: Cyril Brulebois <kibi@debian.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Cyril Brulebois 2010-11-08 23:35:33 +01:00 • committed by Peter Hutterer
commit b142b0d274
8 changed files with 12 additions and 24 deletions

View file

@ -2964,8 +2964,7 @@ xf86OutputSetEDID (xf86OutputPtr output, xf86MonPtr edid_mon)
int size;
#endif
if (output->MonInfo != NULL)
free(output->MonInfo);
free(output->MonInfo);
output->MonInfo = edid_mon;