From: Márton Németh Date: Sat, 16 Jan 2010 08:11:07 +0000 (-0300) Subject: V4L/DVB: zoran: cleanup pointer condition X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=cebedf15d2776e1629a86260b5aa7bcfff8401b2;p=linux-edison.git V4L/DVB: zoran: cleanup pointer condition Remove the following sparse warning (see "make C=1"): * warning: Using plain integer as NULL pointer Signed-off-by: Márton Németh Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/zoran/zoran_driver.c b/drivers/media/video/zoran/zoran_driver.c index 2ddffed019e..0d1e8710a32 100644 --- a/drivers/media/video/zoran/zoran_driver.c +++ b/drivers/media/video/zoran/zoran_driver.c @@ -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",