Commit a4d16493 authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang

i2c: sh_mobile: shorten exit of xfer routine

We can use the ternary operator for easier reading.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 832a522a
......@@ -746,9 +746,7 @@ static int sh_mobile_i2c_xfer(struct i2c_adapter *adapter,
clk_disable_unprepare(pd->clk);
pm_runtime_put_sync(pd->dev);
if (!err)
err = num;
return err;
return err ?: num;
}
static u32 sh_mobile_i2c_func(struct i2c_adapter *adapter)
......
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