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 <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
Wolfram Sang 2017-10-29 00:45:59 +02:00
commit 5e9bee5267

View file

@ -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;