projects
/
GitHub
/
LineageOS
/
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:
3e83349
)
i2c: sun6i-p2wi: use proper return value in probe
author
Wolfram Sang
<wsa@the-dreams.de>
Thu, 12 Jun 2014 06:52:17 +0000
(08:52 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Thu, 12 Jun 2014 20:22:25 +0000
(22:22 +0200)
Fixes:
>> drivers/i2c/busses/i2c-sun6i-p2wi.c:243:10: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sun6i-p2wi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-sun6i-p2wi.c
b/drivers/i2c/busses/i2c-sun6i-p2wi.c
index f1d3e6f1a409da07db40754a8cc0c12a06ecedbe..5d2d67820c9836c9cfd772b16eb1fd2e5ab7fee4 100644
(file)
--- a/
drivers/i2c/busses/i2c-sun6i-p2wi.c
+++ b/
drivers/i2c/busses/i2c-sun6i-p2wi.c
@@
-240,7
+240,7
@@
static int p2wi_probe(struct platform_device *pdev)
snprintf(p2wi->adapter.name, sizeof(p2wi->adapter.name), pdev->name);
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
- dev_err(dev, "failed to retrieve irq: %d\n",
ret
);
+ dev_err(dev, "failed to retrieve irq: %d\n",
irq
);
return irq;
}