* [PATCH] zoran: cleanup pointer condition
@ 2010-01-16 8:11 Németh Márton
0 siblings, 0 replies; only message in thread
From: Németh Márton @ 2010-01-16 8:11 UTC (permalink / raw)
To: mjpeg-users, V4L Mailing List
From: Márton Németh <nm127@freemail.hu>
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>
---
diff -r 5bcdcc072b6d linux/drivers/media/video/zoran/zoran_driver.c
--- a/linux/drivers/media/video/zoran/zoran_driver.c Sat Jan 16 07:25:43 2010 +0100
+++ b/linux/drivers/media/video/zoran/zoran_driver.c Sat Jan 16 09:03:31 2010 +0100
@@ -325,7 +325,7 @@
/* 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",
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-16 8:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-16 8:11 [PATCH] zoran: cleanup pointer condition Németh Márton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox