From: Joe Hershberger Date: Tue, 30 Jul 2019 21:51:41 +0000 (-0500) Subject: net: mdio: Clarify code flow Covarity 244085 & 244090 X-Git-Tag: v2019.10-rc4~22^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14a8adebb559ca6dbf563a0246ad8d2241606879;p=platform%2Fkernel%2Fu-boot.git net: mdio: Clarify code flow Covarity 244085 & 244090 Document that the lack of breaks is intentional. Series-to: u-boot Series-cc: ti Signed-off-by: Joe Hershberger --- diff --git a/cmd/mdio.c b/cmd/mdio.c index add6440..22c8fbe 100644 --- a/cmd/mdio.c +++ b/cmd/mdio.c @@ -253,12 +253,13 @@ static int do_mdio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) case 'w': if (pos > 1) data = simple_strtoul(argv[pos--], NULL, 16); + /* Intentional fall-through - Get reg for read and write */ case 'r': if (pos > 1) if (extract_reg_range(argv[pos--], &devadlo, &devadhi, ®lo, ®hi)) return CMD_RET_FAILURE; - + /* Intentional fall-through - Get phy for all commands */ default: if (pos > 1) if (extract_phy_range(&argv[2], pos - 1, &bus,