remove unneeded check for NULL
authorMalte S. Stretz <mss@apache.org>
Mon, 10 Jan 2011 22:47:59 +0000 (23:47 +0100)
committerMalte S. Stretz <mss@apache.org>
Mon, 10 Jan 2011 22:47:59 +0000 (23:47 +0100)
ax89063.c

index d679bda..447a711 100644 (file)
--- a/ax89063.c
+++ b/ax89063.c
@@ -246,11 +246,8 @@ MODULE_EXPORT void ax89063_close(Driver *drvthis) {
                        close(p->fd);
                }
 
-               if (p->framebuf != NULL)
-                       free(p->framebuf);
-
-               if (p->framebuf_hw != NULL)
-                       free(p->framebuf_hw);
+               free(p->framebuf);
+               free(p->framebuf_hw);
 
                free(p);
        }