summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2019-06-21 15:26:56 +0200
committerPatrick Delaunay <patrick.delaunay@st.com>2019-07-12 11:50:57 +0200
commitd23aef176f2c9eb9818755efecc381378b8d4b3f (patch)
tree5e6768b6e67169294d49f244b20164550303a670 /cmd
parent1ddf544e63c7dcfcd60bb661da26aea5d85397f5 (diff)
cmd: pinmux: Fix warnings when compiling with W=1
This patch solves the following warnings: cmd/pinmux.c: In function 'do_dev': cmd/pinmux.c:26:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (ret) { ^ cmd/pinmux.c:30:2: note: here case 1: ^~~~ Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/pinmux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/pinmux.c b/cmd/pinmux.c
index 6c8ec5164d..de909a163d 100644
--- a/cmd/pinmux.c
+++ b/cmd/pinmux.c
@@ -27,6 +27,7 @@ static int do_dev(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
printf("Can't get the pin-controller: %s!\n", name);
return CMD_RET_FAILURE;
}
+ /* fall through */
case 1:
if (!currdev) {
printf("Pin-controller device is not set!\n");