mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-14 09:25:12 +00:00
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>
This commit is contained in:
parent
0633255ca2
commit
cebedf15d2
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user