Skip to contentSkip to conversation

zoran: cleanup pointer condition

PATCH New Németh Márton 1 participant 1 message Jan 16, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zoran: cleanup pointer condition

From: Márton Németh <[email protected]>

Remove the following sparse warning (see "make C=1"):
* warning: Using plain integer as NULL pointer

---

linux/drivers/media/video/zoran/zoran_driver.c +1 -1
diff -r 5bcdcc072b6d linux/drivers/media/video/zoran/zoran_driver.c
@@ -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",