summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-02-27 20:10:28 -0500
committerTom Rini <trini@konsulko.com>2018-02-27 20:10:28 -0500
commitd231182441d2e3f0fdf0fdadcb1f02466605d1c6 (patch)
tree67a37f0c69a98f02af2511a659544e941d804b11 /cmd
parent3b3ea2c56ec4bc5588281fd103c744e608f8b25c (diff)
parenta0fd381fc60460a23d85c71ea06af0daa2427b2c (diff)
downloadu-boot-d231182441d2e3f0fdf0fdadcb1f02466605d1c6.tar.gz
u-boot-d231182441d2e3f0fdf0fdadcb1f02466605d1c6.tar.xz
u-boot-d231182441d2e3f0fdf0fdadcb1f02466605d1c6.zip
Merge git://git.denx.de/u-boot-net
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mdio.c7
1 files changed, 3 insertions, 4 deletions
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 <miiphy.h>
#include <phy.h>
-
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,
- &reglo, &reghi))
+ &reglo, &reghi))
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;