mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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>
This commit is contained in:
parent
d67d5d529a
commit
a621b167ba
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue