]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: mdio: Fix style violations
authorMario Six <mario.six@gdsys.cc>
Mon, 15 Jan 2018 10:08:26 +0000 (11:08 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 26 Feb 2018 21:47:43 +0000 (15:47 -0600)
Fix some style violations in the MDIO command.

Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Mario Six <mario.six@gdsys.cc>
cmd/mdio.c

index 21dc103736e7f8bbc67b6dfea2a240ecd34662a3..3f11963006533c6c03f863c7306446dad909325d 100644 (file)
@@ -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;