linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Rabel <pavel@web.sajt.cz>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] sim710.c compiler warning
Date: Sun, 17 Dec 2000 19:19:46 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.21.0012171917310.25444-100000@web.sajt.cz> (raw)


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/

             reply	other threads:[~2000-12-17 18:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-17 18:19 Pavel Rabel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-12-05 15:51 [PATCH] sim710.c compiler warning Pavel Rabel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.21.0012171917310.25444-100000@web.sajt.cz \
    --to=pavel@web.sajt.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).