mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
power_i2c.c: Fix unused variable warning
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: 505cf4750a
("power: change from meaningless value to error number")
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
5b30997fd2
commit
c8ac644979
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue