summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/cmd_mdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_mdio.c b/common/cmd_mdio.c
index cac0703..4ac9de4 100644
--- a/common/cmd_mdio.c
+++ b/common/cmd_mdio.c
@@ -91,9 +91,9 @@ int mdio_read_ranges(struct mii_dev *bus, int addrlo,
for (devad = devadlo; devad <= devadhi; devad++) {
for (reg = reglo; reg <= reghi; reg++) {
- u16 val;
- val = bus->read(bus, addr, devad, reg);
+ int val;
+ val = bus->read(bus, addr, devad, reg);
if (val < 0) {
printf("Error\n");