提交 a4d16493 编写于 作者: W Wolfram Sang 提交者: Wolfram Sang

i2c: sh_mobile: shorten exit of xfer routine

We can use the ternary operator for easier reading.
Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册