gpio: xilinx: Simplify logic in xilinx_gpio_set_value
authorMichal Simek <michal.simek@xilinx.com>
Mon, 30 Jul 2018 12:29:27 +0000 (14:29 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 7 Aug 2018 09:03:43 +0000 (11:03 +0200)
commit642a86041228974c154dc7e250f3d1e0b8adf33f
tree5919c1f2d7cf5d6b5dc99168040dbc5a54f6fdbe
parentbf2a69de81908f36a5853b36cc2afbd976856e3b
gpio: xilinx: Simplify logic in xilinx_gpio_set_value

There is no reason to do read/write for if/else separately.

Reported-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
drivers/gpio/xilinx_gpio.c