]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: sh_mobile: define start_ch() void as it only returns 0 anyhow
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 24 Aug 2018 14:52:45 +0000 (16:52 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 30 Aug 2018 21:13:30 +0000 (23:13 +0200)
commit0b3663544e7723edb64977693fa8bd75aafa6d66
tree3b82501f6551d3566d7243c8a405aa68f684b635
parentcb22c2d512dfe33d7f61086e53600d0ebfedcf5d
i2c: sh_mobile: define start_ch() void as it only returns 0 anyhow

After various refactoring over the years, start_ch() doesn't return
errno anymore, so make the function return void. This saves the error
handling when calling it which in turn eases cleanup of resources of a
future patch.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sh_mobile.c