]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: missing fallthrough macro in do_pci()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 1 Apr 2023 07:43:33 +0000 (09:43 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 6 Apr 2023 23:10:08 +0000 (19:10 -0400)
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>
cmd/pci.c

index 58a74755c8b2e2f6a9452406817db7f7539371b3..78b661d15b1c48e038062601d97f565b22a9607e 100644 (file)
--- 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)