aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-04-01 09:43:33 +0200
committerTom Rini <trini@konsulko.com>2023-04-06 19:10:08 -0400
commit62d92d87f32d998c46047e8382fcd7dba2401c0d (patch)
tree8e30422981c6be21ed1520e6708d7c056b38fafb /cmd
parent06a94b3e8b81bf679391e66441ff6b0051836f03 (diff)
downloadu-boot-62d92d87f32d998c46047e8382fcd7dba2401c0d.zip
u-boot-62d92d87f32d998c46047e8382fcd7dba2401c0d.tar.gz
u-boot-62d92d87f32d998c46047e8382fcd7dba2401c0d.tar.bz2
cmd: missing fallthrough macro in do_pci()
Add a missing fallthrough macro to avoid a -Wimplicit-fallthrough warning. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/pci.c b/cmd/pci.c
index 58a7475..78b661d 100644
--- a/cmd/pci.c
+++ b/cmd/pci.c
@@ -517,6 +517,7 @@ static int do_pci(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
addr = hextoul(argv[3], NULL);
if (argc > 4)
value = hextoul(argv[4], NULL);
+ fallthrough;
case 'h': /* header */
case 'b': /* bars */
if (argc < 3)