common/cmd_mdio.c: fix compile warning
PATCH 1/1 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 <[email protected]>
Cc Andy Fleming <[email protected]>
--- common/cmd_mdio.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
common/cmd_mdio.c +2 -2
@@ -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" );
Signature · 1 line
1.7.1
Wolfgang Denk
AppliedPATCH 1/1 common/cmd_mdio.c: fix compile warning
Dear Anatolij Gustschin,
Quoted 8 lines · In message <[email protected]> you wrote:
cmd_mdio.c: In function 'mdio_read_ranges':
cmd_mdio.c:97: warning: comparison is always false due to limited range of data typeSigned-off-by Anatolij Gustschin <[email protected]>Cc Andy Fleming <[email protected]>--- common/cmd_mdio.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 10 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Obviously, a man's judgement cannot be better than the information on which he has based it. Give him the truth and he may still go wrong when he has the chance to be right, but give him no news or present him only with distorted and incomplete data, with ignorant, sloppy or biased reporting, with propaganda and deliberate falsehoods, and you destroy his whole reasoning processes, and make him something less than a man. - Arthur Hays Sulzberger