zoran: cleanup pointer condition

Message ID 4B51749B.30902@freemail.hu (mailing list archive)
State Superseded, archived
Headers

Commit Message

Németh Márton Jan. 16, 2010, 8:11 a.m. UTC
  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>
---
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
  

Patch

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",