Browse Source

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: 505cf4750ae5 ("power: change from meaningless value to error number")
Signed-off-by: Tom Rini <trini@konsulko.com>
Tom Rini 8 năm trước cách đây
mục cha
commit
c8ac644979
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      drivers/power/power_i2c.c

+ 0 - 1
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;