cmd/regulator: missing fallthrough in do_dev()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 1 Apr 2023 08:07:30 +0000 (10:07 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 6 Apr 2023 23:10:08 +0000 (19:10 -0400)
Add missing fallthrough macro.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/regulator.c

index ed4996d..8988c90 100644 (file)
@@ -37,6 +37,7 @@ static int do_dev(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
                        printf("Can't get the regulator: %s!\n", name);
                        return failure(ret);
                }
+               fallthrough;
        case 1:
                if (!currdev) {
                        printf("Regulator device is not set!\n\n");