Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)