projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b30997
)
power_i2c.c: Fix unused variable warning
author
Tom Rini
<trini@konsulko.com>
Wed, 11 Jan 2017 14:16:05 +0000
(09:16 -0500)
committer
Tom Rini
<trini@konsulko.com>
Wed, 11 Jan 2017 14:16:05 +0000
(09:16 -0500)
The variable ret was added but never set as we did not make calls to
other functions that we needed to check the return value on.
Fixes:
505cf4750ae5
("power: change from meaningless value to error number")
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/power/power_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/power/power_i2c.c
b/drivers/power/power_i2c.c
index dd22ece53cd28ef303fb6ffddf791cb516c8db60..8a8ea10e33efc92405c461e12eb3df97905cf0a5 100644
(file)
--- a/
drivers/power/power_i2c.c
+++ b/
drivers/power/power_i2c.c
@@
-19,7
+19,6
@@
int pmic_reg_write(struct pmic *p, u32 reg, u32 val)
{
unsigned char buf[4] = { 0 };
- int ret;
if (check_reg(p, reg))
return -EINVAL;