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:
6b0c8dc
)
i2c: omap: fix cleanup regression
author
Wolfram Sang
<wsa@the-dreams.de>
Tue, 14 Jul 2015 12:07:08 +0000
(14:07 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Mon, 10 Aug 2015 06:37:33 +0000
(08:37 +0200)
Patch "i2c: omap: abolish variable name confusion" triggered a
coccinelle warning which we fix here:
drivers/i2c/busses/i2c-omap.c:1333:5-24: pm_runtime_get_sync returns < 0 as error. Unecessary IS_ERR_VALUE at line 1334
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-omap.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-omap.c
b/drivers/i2c/busses/i2c-omap.c
index afc3bfca0b6cea5edaa933ca8e519bfc86363019..08d26ba61ed3326a8905c99cdb6ee8caaef45727 100644
(file)
--- a/
drivers/i2c/busses/i2c-omap.c
+++ b/
drivers/i2c/busses/i2c-omap.c
@@
-1342,7
+1342,7
@@
omap_i2c_probe(struct platform_device *pdev)
pm_runtime_use_autosuspend(omap->dev);
r = pm_runtime_get_sync(omap->dev);
- if (
IS_ERR_VALUE(r)
)
+ if (
r < 0
)
goto err_free_mem;
/*