V4L/DVB: zoran: cleanup pointer condition
authorMárton Németh <nm127@freemail.hu>
Sat, 16 Jan 2010 08:11:07 +0000 (05:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:45 +0000 (15:10 -0300)
Remove the following sparse warning (see "make C=1"):
 * warning: Using plain integer as NULL pointer

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/zoran/zoran_driver.c

index 2ddffed..0d1e871 100644 (file)
@@ -324,7 +324,7 @@ static int jpg_fbuffer_alloc(struct zoran_fh *fh)
                /* Allocate fragment table for this buffer */
 
                mem = (void *)get_zeroed_page(GFP_KERNEL);
-               if (mem == 0) {
+               if (!mem) {
                        dprintk(1,
                                KERN_ERR
                                "%s: %s - get_zeroed_page (frag_tab) failed for buffer %d\n",