projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afc13b7
)
i2c/scx200_acb: Don't use 0 as NULL pointer
author
Adrian Bunk
<bunk@kernel.org>
Tue, 22 Apr 2008 20:16:48 +0000
(22:16 +0200)
committer
Jean Delvare
<khali@hyperion.delvare>
Tue, 22 Apr 2008 20:16:48 +0000
(22:16 +0200)
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>
drivers/i2c/busses/scx200_acb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/scx200_acb.c
b/drivers/i2c/busses/scx200_acb.c
index f5e7a70da831b1c54b51e081bdf0c1a0bc6ef1f8..61abe0f33255291ffa7e274f0aed3a8f68f283d6 100644
(file)
--- 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;