rockchip: gpio: remove dead code
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 30 Jan 2018 23:45:51 +0000 (00:45 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 13 Feb 2018 11:52:47 +0000 (12:52 +0100)
commit6e5308c4b821be718a2b5ed5a233e17bb6e97949
tree46585e2607a557e4fbd81edb48538aacafc24bbd
parentebdb098c67c8fa1e9eb3d4e2f6a6a380fc222188
rockchip: gpio: remove dead code

In the following statements
if (a) return a; if (a) return c;
the second return can never be executed.

Identified by cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/gpio/rk_gpio.c