summaryrefslogtreecommitdiff
path: root/miext
diff options
context:
space:
mode:
authorCyril Brulebois <kibi@debian.org>2010-11-08 23:35:33 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2010-11-11 08:29:54 +1000
commitb142b0d27442191d628762604f4eb1f65263d717 (patch)
tree502f7f92f01a5ecf8301bc5bf41555934896d128 /miext
parent0649ac0afdb3f8ed11c2634563d6b9df161cb9ec (diff)
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>
Diffstat (limited to 'miext')
-rw-r--r--miext/rootless/rootlessScreen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/miext/rootless/rootlessScreen.c b/miext/rootless/rootlessScreen.c
index 43b9cbb53..61d2f5dab 100644
--- a/miext/rootless/rootlessScreen.c
+++ b/miext/rootless/rootlessScreen.c
@@ -92,8 +92,7 @@ RootlessUpdateScreenPixmap(ScreenPtr pScreen)
rowbytes = PixmapBytePad(pScreen->width, pScreen->rootDepth);
if (s->pixmap_data_size < rowbytes) {
- if (s->pixmap_data != NULL)
- free(s->pixmap_data);
+ free(s->pixmap_data);
s->pixmap_data_size = rowbytes;
s->pixmap_data = malloc(s->pixmap_data_size);