mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 10:24:49 +00:00
cmd: pmic: annotate switch/case fallthrough
The argument parsing code in the pmic command uses an implicit switch/case fallthrough to handle the common part of having one or two arguments. Add our "fallthrough;" statement-like macro before the second branch in the parsing code, to avoid a warning when GCC's -Wimplicit-fallthrough warning option is enabled. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
3f61113c27
commit
d29a90c8ce
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ static int do_dev(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|||
printf("Can't get PMIC: %s!\n", name);
|
||||
return failure(ret);
|
||||
}
|
||||
fallthrough;
|
||||
case 1:
|
||||
if (!currdev) {
|
||||
printf("PMIC device is not set!\n\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue