Commit 5e9bee52 authored by Wolfram Sang's avatar Wolfram Sang

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: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 9410b7d7
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment