i2c: i2c-qcom-geni: Simplify tx/rx functions
authorStephen Boyd <swboyd@chromium.org>
Mon, 24 Sep 2018 23:52:34 +0000 (16:52 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 11 Oct 2018 21:09:20 +0000 (23:09 +0200)
commitef8d1639f2b71c683277cc2b27354541792f6ecf
tree4d99d6758de6c28edd48f172d727527ce676e864
parent90fb814b6c025da45f71db1703cffe3fe87f575c
i2c: i2c-qcom-geni: Simplify tx/rx functions

We never really look at the 'ret' local variable in these functions, so
let's remove it to make way for shorter and simpler code. Furthermore,
we can shorten some lines by adding two local variables for the SE and
the message length so that everything fits in 80 columns and testing the
'dma_buf' local variable in lieu of the 'mode' local variable.  And
kernel style is to leave the return statement by itself, detached from
the rest of the function.

Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Alok Chauhan <alokc@codeaurora.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-qcom-geni.c