lkml.org 
[lkml]   [2000]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] sim710.c compiler warning

sim710.c: In function `sim710_detect':
sim710.c:1452: warning: comparison between pointer and integer


--- drivers/scsi/sim710.c.old Tue Dec 5 15:34:00 2000
+++ drivers/scsi/sim710.c Tue Dec 5 15:37:18 2000
@@ -1449,7 +1449,7 @@

for(indx = 0; indx < no_of_boards; indx++) {
unsigned long page = __get_free_pages(GFP_ATOMIC, order);
- if(page == NULL)
+ if( !page )
{
printk(KERN_WARNING "sim710: out of memory registering board %d.\n", indx);
break;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:51    [W:0.019 / U:0.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site