X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=cmd%2Fmdio.c;h=184868063abdab7a6a1cbd6d084ebeb20af81f67;hb=3c1eaec012ad3105b8bf787de0672d8739b5ec54;hp=21dc103736e7f8bbc67b6dfea2a240ecd34662a3;hpb=15a2acdf850e86cd0ae8dfc80d49c89727bac09b;p=u-boot diff --git a/cmd/mdio.c b/cmd/mdio.c index 21dc103736..184868063a 100644 --- a/cmd/mdio.c +++ b/cmd/mdio.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2011 Freescale Semiconductor, Inc * Andy Fleming - * - * SPDX-License-Identifier: GPL-2.0+ */ /* @@ -14,7 +13,6 @@ #include #include - static char last_op[2]; static uint last_data; static uint last_addr_lo; @@ -243,13 +241,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;