From: Wolfram Sang Date: Sat, 28 Oct 2017 22:45:59 +0000 (+0200) Subject: power: supply: sbs-battery: remove unchecked return var X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5e9bee5267fe626df39ca04d6c30e135a9e8b157;p=linux.git power: supply: sbs-battery: remove unchecked return var Since the return value is not checked anyhow, we don't need to store it. Reviewed-by: Sebastian Reichel Signed-off-by: Wolfram Sang --- diff --git a/drivers/power/supply/sbs-battery.c b/drivers/power/supply/sbs-battery.c index fb61da370947f..83d7b4115857e 100644 --- a/drivers/power/supply/sbs-battery.c +++ b/drivers/power/supply/sbs-battery.c @@ -556,7 +556,7 @@ static int sbs_get_battery_serial_number(struct i2c_client *client, if (ret < 0) return ret; - ret = sprintf(sbs_serial, "%04x", ret); + sprintf(sbs_serial, "%04x", ret); val->strval = sbs_serial; return 0;