]> 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)
commitdbe007f5db0946eb8f7e17f5a5e86f70f2375f2a
tree1bad2429946e2a9968916e752b2242ff9650a5ac
parent27d51f979ea39df04e01dc0c944e6c0d135c19fa
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