diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-04-22 16:16:48 -0400 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2008-04-22 16:16:48 -0400 |
commit | dec1a998bdafb4e4a18c1259bf01ffe85db368c2 (patch) | |
tree | 51a183c05dde232d85adcbe49e6730c15c03d5d1 /drivers/i2c | |
parent | afc13b765ea71d316ce4974d3dc5a96cc73a0e95 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/scx200_acb.c b/drivers/i2c/busses/scx200_acb.c index f5e7a70da831..61abe0f33255 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, | |||
527 | if (iface == NULL) | 527 | if (iface == NULL) |
528 | return -ENOMEM; | 528 | return -ENOMEM; |
529 | 529 | ||
530 | if (request_region(base, 8, iface->adapter.name) == 0) { | 530 | if (!request_region(base, 8, iface->adapter.name)) { |
531 | printk(KERN_ERR NAME ": can't allocate io 0x%lx-0x%lx\n", | 531 | printk(KERN_ERR NAME ": can't allocate io 0x%lx-0x%lx\n", |
532 | base, base + 8 - 1); | 532 | base, base + 8 - 1); |
533 | rc = -EBUSY; | 533 | rc = -EBUSY; |