summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2015-07-14 14:07:08 +0200
committerWolfram Sang <wsa@the-dreams.de>2015-08-10 08:37:33 +0200
commit77441ac00d324c037c088da090fa505b45dad9d4 (patch)
treed34b65bfa3591d48169b1bd355b91d5695f39f6b /drivers/i2c
parenti2c: xiic: Do not continue in case of errors in Rx (diff)
downloadlinux-77441ac00d324c037c088da090fa505b45dad9d4.tar.xz
linux-77441ac00d324c037c088da090fa505b45dad9d4.zip
i2c: omap: fix cleanup regression
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-omap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index afc3bfca0b6c..08d26ba61ed3 100644
--- 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;
/*