* [PATCH] sim710.c compiler warning
@ 2000-12-05 15:51 Pavel Rabel
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Rabel @ 2000-12-05 15:51 UTC (permalink / raw)
To: linux-kernel
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] sim710.c compiler warning
@ 2000-12-17 18:19 Pavel Rabel
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Rabel @ 2000-12-17 18:19 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
Patch fixes compiler warning for 2.4.0-test12
sim710.c: In function `sim710_detect':
sim710.c:1452: warning: comparison between pointer and integer
Pavel Rabel
--- 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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-12-17 18:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-05 15:51 [PATCH] sim710.c compiler warning Pavel Rabel
2000-12-17 18:19 Pavel Rabel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).