Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Márton Németh and committed by
Mauro Carvalho Chehab
cebedf15 0633255c

+1 -1
+1 -1
drivers/media/video/zoran/zoran_driver.c
··· 324 324 /* Allocate fragment table for this buffer */ 325 325 326 326 mem = (void *)get_zeroed_page(GFP_KERNEL); 327 - if (mem == 0) { 327 + if (!mem) { 328 328 dprintk(1, 329 329 KERN_ERR 330 330 "%s: %s - get_zeroed_page (frag_tab) failed for buffer %d\n",