Commit cebedf15 authored by Márton Németh's avatar Márton Németh Committed by Mauro Carvalho Chehab

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: default avatarMárton Németh <nm127@freemail.hu>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 0633255c
...@@ -324,7 +324,7 @@ static int jpg_fbuffer_alloc(struct zoran_fh *fh) ...@@ -324,7 +324,7 @@ static int jpg_fbuffer_alloc(struct zoran_fh *fh)
/* Allocate fragment table for this buffer */ /* Allocate fragment table for this buffer */
mem = (void *)get_zeroed_page(GFP_KERNEL); mem = (void *)get_zeroed_page(GFP_KERNEL);
if (mem == 0) { if (!mem) {
dprintk(1, dprintk(1,
KERN_ERR KERN_ERR
"%s: %s - get_zeroed_page (frag_tab) failed for buffer %d\n", "%s: %s - get_zeroed_page (frag_tab) failed for buffer %d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment