summaryrefslogtreecommitdiff
path: root/cmd/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/gpio.c')
-rw-r--r--cmd/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gpio.c b/cmd/gpio.c
index 2b78b16866..693998e8bd 100644
--- a/cmd/gpio.c
+++ b/cmd/gpio.c
@@ -141,7 +141,7 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#endif
if (argc > 0)
str_gpio = *argv;
- if (!strncmp(str_cmd, "status", 1)) {
+ if (!strncmp(str_cmd, "status", 2)) {
/* Support deprecated gpio_status() */
#ifdef gpio_status
gpio_status();