]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: core: remove level of indentation in i2c_transfer
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 20 Sep 2018 16:14:21 +0000 (18:14 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 5 Oct 2018 16:13:37 +0000 (18:13 +0200)
commit5d2cffef358e83dfbf6732df9178b218060823c6
tree4c49e272d64de08da146af9eb9714ae1f681a422
parent34173e445dfba801893d765b5c55f303bf149b50
i2c: core: remove level of indentation in i2c_transfer

Using the common kernel pattern to bail out at the beginning if some
conditions are not met, we can save a level of indentation. No
functional change.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-base.c