summaryrefslogtreecommitdiff
path: root/common/cmd_mdio.c
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-04-30 02:39:29 +0000
committerWolfgang Denk <wd@denx.de>2011-04-30 23:09:48 +0200
commita621b167baa62871f6b1b10020c230905a8f832c (patch)
treefed22281903e5df04162a95e948185e834606ca1 /common/cmd_mdio.c
parentd67d5d529aa3a5c3c063a24585eeaedd5e0728eb (diff)
common/cmd_mdio.c: fix compile warning
cmd_mdio.c: In function 'mdio_read_ranges': cmd_mdio.c:97: warning: comparison is always false due to limited range of data type Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'common/cmd_mdio.c')
-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 cac07030896..4ac9de4acf2 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");