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)
commitcc52612ec0f3b80c19126a36b8c1e12a8f5a8e78
tree4c49e272d64de08da146af9eb9714ae1f681a422
parenta7163dc2138d96b3593b7d4430d35e506696a62f
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