mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
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 <joe.hershberger@ni.com>
This commit is contained in:
@@ -253,12 +253,13 @@ static int do_mdio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||||||
case 'w':
|
case 'w':
|
||||||
if (pos > 1)
|
if (pos > 1)
|
||||||
data = simple_strtoul(argv[pos--], NULL, 16);
|
data = simple_strtoul(argv[pos--], NULL, 16);
|
||||||
|
/* Intentional fall-through - Get reg for read and write */
|
||||||
case 'r':
|
case 'r':
|
||||||
if (pos > 1)
|
if (pos > 1)
|
||||||
if (extract_reg_range(argv[pos--], &devadlo, &devadhi,
|
if (extract_reg_range(argv[pos--], &devadlo, &devadhi,
|
||||||
®lo, ®hi))
|
®lo, ®hi))
|
||||||
return CMD_RET_FAILURE;
|
return CMD_RET_FAILURE;
|
||||||
|
/* Intentional fall-through - Get phy for all commands */
|
||||||
default:
|
default:
|
||||||
if (pos > 1)
|
if (pos > 1)
|
||||||
if (extract_phy_range(&argv[2], pos - 1, &bus,
|
if (extract_phy_range(&argv[2], pos - 1, &bus,
|
||||||
|
Reference in New Issue
Block a user