]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: vf610: Simplify vf610_gpio_get()
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Mon, 11 Mar 2019 06:27:33 +0000 (23:27 -0700)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 18 Mar 2019 07:58:45 +0000 (08:58 +0100)
commitde73a5786a815ee37175155a963bbfd509ab1ca6
tree5db0d1eb31d0242a12e24dece6e0a573ba7b62b4
parent9e7779fd5aa76bb555ac6db8d43d58b8c46b4499
gpio: vf610: Simplify vf610_gpio_get()

Both branches of the if statement do exactly the same thing, just at
different offsets. Simplify the code a bit by moving shared action
code outside of the if statement. No functional change intended.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: linux-gpio@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-imx@nxp.com
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-vf610.c