From: Mario Six Date: Mon, 15 Jan 2018 10:08:26 +0000 (+0100) Subject: cmd: mdio: Fix style violations X-Git-Tag: v2018.03-rc4~24^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c55038988199fc7bde34ef1a8b6db22b5bbd908c;p=u-boot cmd: mdio: Fix style violations Fix some style violations in the MDIO command. Acked-by: Joe Hershberger Signed-off-by: Mario Six --- diff --git a/cmd/mdio.c b/cmd/mdio.c index 21dc103736..3f11963006 100644 --- a/cmd/mdio.c +++ b/cmd/mdio.c @@ -14,7 +14,6 @@ #include #include - static char last_op[2]; static uint last_data; static uint last_addr_lo; @@ -243,13 +242,13 @@ static int do_mdio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) case 'r': if (pos > 1) if (extract_reg_range(argv[pos--], &devadlo, &devadhi, - ®lo, ®hi)) + ®lo, ®hi)) return -1; default: if (pos > 1) - if (extract_phy_range(&(argv[2]), pos - 1, &bus, - &phydev, &addrlo, &addrhi)) + if (extract_phy_range(&argv[2], pos - 1, &bus, + &phydev, &addrlo, &addrhi)) return -1; break;