summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2017-10-29 00:45:59 +0200
committerWolfram Sang <wsa@the-dreams.de>2017-10-29 00:45:59 +0200
commit5e9bee5267fe626df39ca04d6c30e135a9e8b157 (patch)
tree8829c3e51c124102ce7b8a51a69689fdfe3ee49e /drivers
parent9410b7d71032cc76c4211cbf8f76bad322f0c334 (diff)
downloadlinux-5e9bee5267fe626df39ca04d6c30e135a9e8b157.tar.bz2
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 <sebastian.reichel@collabora.co.uk> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/supply/sbs-battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/sbs-battery.c b/drivers/power/supply/sbs-battery.c
index fb61da370947..83d7b4115857 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;