sis190: mdio operation failure is not correctly detected

i ranges from 0 to 100 in the 'for' loop a few lines above.

Reported by davem.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: K.M. Liu <kmliu@sis.com.tw>
This commit is contained in:
Francois Romieu 2007-11-17 16:56:43 +01:00 committed by David S. Miller
parent 11913d30b9
commit 7bf3f232f7
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ static void __mdio_cmd(void __iomem *ioaddr, u32 ctl)
msleep(1);
}
if (i > 999)
if (i > 99)
printk(KERN_ERR PFX "PHY command failed !\n");
}