]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitb849dd2481a892e324c939421d9aca77777b7621
tree5919c1f2d7cf5d6b5dc99168040dbc5a54f6fdbe
parent5ecc3ad85595b28f896f6df395c6bb550008bc43
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