From: Adrian Bunk Subject: 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 Signed-off-by: Jean Delvare --- drivers/i2c/busses/scx200_acb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-2.6.25-rc7.orig/drivers/i2c/busses/scx200_acb.c 2008-02-11 09:48:54.000000000 +0100 +++ linux-2.6.25-rc7/drivers/i2c/busses/scx200_acb.c 2008-03-31 10:40:12.000000000 +0200 @@ -527,7 +527,7 @@ static int __init scx200_create_isa(cons 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;