diff mbox

zoran: cleanup pointer condition

Message ID 4B51749B.30902@freemail.hu (mailing list archive)
State Accepted
Headers show

Commit Message

Németh Márton Jan. 16, 2010, 8:11 a.m. UTC
None
diff mbox

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