]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1bae3ff27ec1adc24ddb9e0f7d93f4f45b9c0a1c
tree1bad2429946e2a9968916e752b2242ff9650a5ac
parentd7f2f9a2ad1ec436534533f46aa5f8348bb5a0c7
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