summaryrefslogtreecommitdiff
path: root/drivers/media/video/zoran
diff options
context:
space:
mode:
authorMárton Németh <nm127@freemail.hu>2010-01-16 08:11:07 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 18:10:45 (GMT)
commitcebedf15d2776e1629a86260b5aa7bcfff8401b2 (patch)
tree4cffd0496883eb7237dca362a0dea3abcbd57180 /drivers/media/video/zoran
parent0633255ca28715fd452972d460f5bfbe2c793d72 (diff)
downloadlinux-cebedf15d2776e1629a86260b5aa7bcfff8401b2.tar.xz
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>
Diffstat (limited to 'drivers/media/video/zoran')
-rw-r--r--drivers/media/video/zoran/zoran_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/zoran/zoran_driver.c b/drivers/media/video/zoran/zoran_driver.c
index 2ddffed..0d1e871 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",