i2c: i2c-qcom-geni: Simplify irq handler
authorStephen Boyd <swboyd@chromium.org>
Mon, 24 Sep 2018 23:52:35 +0000 (16:52 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 11 Oct 2018 21:09:58 +0000 (23:09 +0200)
commita676973e4501991e2ede959ee69c6553caa29038
tree1bad2429946e2a9968916e752b2242ff9650a5ac
parentef8d1639f2b71c683277cc2b27354541792f6ecf
i2c: i2c-qcom-geni: Simplify irq handler

We don't need to use goto here, we can just collapse the if statement
and goto chain into multiple branches and then combine some duplicate
completion calls into one big if statement. Let's do it to clean up code
some more.

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