]> 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)
commit37d177d62730c770519a7636c614a8113662c433
tree3b82501f6551d3566d7243c8a405aa68f684b635
parent1347131928b6caeac6d67680a90610b25f417cf8
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