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.si...@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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to