From: Francois Romieu Date: Sat, 17 Nov 2007 15:56:43 +0000 (+0100) Subject: sis190: mdio operation failure is not correctly detected X-Git-Tag: v2.6.24~10^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7bf3f232f7c78efee8c4d14ad9af8a5a40304916;p=linux-2.6-omap-h63xx.git 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 Cc: K.M. Liu --- diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c index 92e0eb95ff8..342a986214c 100644 --- a/drivers/net/sis190.c +++ b/drivers/net/sis190.c @@ -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"); }