Skip to content
Snippets Groups Projects
Commit c5503898 authored by Mario Six's avatar Mario Six Committed by Joe Hershberger
Browse files

cmd: mdio: Fix style violations


Fix some style violations in the MDIO command.

Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
Signed-off-by: default avatarMario Six <mario.six@gdsys.cc>
parent 431be621
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include <miiphy.h> #include <miiphy.h>
#include <phy.h> #include <phy.h>
static char last_op[2]; static char last_op[2];
static uint last_data; static uint last_data;
static uint last_addr_lo; static uint last_addr_lo;
...@@ -243,13 +242,13 @@ static int do_mdio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -243,13 +242,13 @@ static int do_mdio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
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,
&reglo, &reghi)) &reglo, &reghi))
return -1; return -1;
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,
&phydev, &addrlo, &addrhi)) &phydev, &addrlo, &addrhi))
return -1; return -1;
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment