From: Alexey Dobriyan <adobriyan@mail.ru>
To: Christer Weinigel <christer@weinigel.se>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] scx200: s/0/NULL/ in pointer context
Date: Sun, 9 Jan 2005 11:52:50 +0200 [thread overview]
Message-ID: <200501091152.50151.adobriyan@mail.ru> (raw)
Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>
Index: linux-2.6.10-bk11-warnings/arch/i386/kernel/scx200.c
===================================================================
--- linux-2.6.10-bk11-warnings/arch/i386/kernel/scx200.c (revision 3)
+++ linux-2.6.10-bk11-warnings/arch/i386/kernel/scx200.c (revision 4)
@@ -48,7 +48,7 @@
base = pci_resource_start(pdev, 0);
printk(KERN_INFO NAME ": GPIO base 0x%x\n", base);
- if (request_region(base, SCx200_GPIO_SIZE, "NatSemi SCx200 GPIO") == 0) {
+ if (request_region(base, SCx200_GPIO_SIZE, "NatSemi SCx200 GPIO") == NULL) {
printk(KERN_ERR NAME ": can't allocate I/O for GPIOs\n");
return -EBUSY;
}
reply other threads:[~2005-01-09 8:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200501091152.50151.adobriyan@mail.ru \
--to=adobriyan@mail.ru \
--cc=christer@weinigel.se \
--cc=linux-kernel@vger.kernel.org \
/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).