From: Tom Rini Date: Wed, 11 Jan 2017 14:16:05 +0000 (-0500) Subject: power_i2c.c: Fix unused variable warning X-Git-Tag: v2017.03-rc1~139 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c8ac6449797951414cec471e759e7bb0c46f490f;p=oweals%2Fu-boot.git 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 --- diff --git a/drivers/power/power_i2c.c b/drivers/power/power_i2c.c index dd22ece53c..8a8ea10e33 100644 --- 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;