From: Anatolij Gustschin Date: Sat, 30 Apr 2011 02:39:29 +0000 (+0000) Subject: common/cmd_mdio.c: fix compile warning X-Git-Tag: v2011.06-rc1~87 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a621b167baa62871f6b1b10020c230905a8f832c;p=u-boot 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 Cc: Andy Fleming --- diff --git a/common/cmd_mdio.c b/common/cmd_mdio.c index cac0703089..4ac9de4acf 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");