summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-04-22 22:16:48 +0200
committerJean Delvare <khali@hyperion.delvare>2008-04-22 22:16:48 +0200
commitdec1a998bdafb4e4a18c1259bf01ffe85db368c2 (patch)
tree51a183c05dde232d85adcbe49e6730c15c03d5d1 /drivers/i2c
parentafc13b765ea71d316ce4974d3dc5a96cc73a0e95 (diff)
downloadop-kernel-dev-dec1a998bdafb4e4a18c1259bf01ffe85db368c2.zip
op-kernel-dev-dec1a998bdafb4e4a18c1259bf01ffe85db368c2.tar.gz
i2c/scx200_acb: Don't use 0 as NULL pointer
Don't use 0 as NULL pointer. Spotted by sparse. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/scx200_acb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/scx200_acb.c b/drivers/i2c/busses/scx200_acb.c
index f5e7a70..61abe0f 100644
--- a/drivers/i2c/busses/scx200_acb.c
+++ b/drivers/i2c/busses/scx200_acb.c
@@ -527,7 +527,7 @@ static int __init scx200_create_isa(const char *text, unsigned long base,
if (iface == NULL)
return -ENOMEM;
- if (request_region(base, 8, iface->adapter.name) == 0) {
+ if (!request_region(base, 8, iface->adapter.name)) {
printk(KERN_ERR NAME ": can't allocate io 0x%lx-0x%lx\n",
base, base + 8 - 1);
rc = -EBUSY;
OpenPOWER on IntegriCloud