[U-Boot] [PATCH] cmd: gpio: Remove dead code from do_gpio
Michal Simek
michal.simek at xilinx.com
Wed Jun 13 13:06:49 UTC 2018
gpio input/set/clear and toggle commands are already cover that's why
there is no any other case which should be handled.
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
Reported by: Coverity (local)
Not sure how to report this properly without CID
---
cmd/gpio.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/cmd/gpio.c b/cmd/gpio.c
index ecdc453918f4..f59cb5837187 100644
--- a/cmd/gpio.c
+++ b/cmd/gpio.c
@@ -208,8 +208,6 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if (!IS_ERR_VALUE(value))
value = !value;
break;
- default:
- goto show_usage;
}
gpio_direction_output(gpio, value);
}
--
1.9.1
More information about the U-Boot
mailing list