Skip to content
Snippets Groups Projects
Commit c8ac6449 authored by Tom Rini's avatar Tom Rini
Browse files

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: 505cf475 ("power: change from meaningless value to error number")
Signed-off-by: default avatarTom Rini <trini@konsulko.com>
parent 5b30997f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment