Commit 9c4d5e12 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] de4x5 warning fix

Ugh.

drivers/net/tulip/de4x5.c: In function `mii_get_phy':
drivers/net/tulip/de4x5.c:5092: warning: operation on `i' may be undefined
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
parent 9ff265eb
...@@ -5089,7 +5089,7 @@ mii_get_phy(struct net_device *dev) ...@@ -5089,7 +5089,7 @@ mii_get_phy(struct net_device *dev)
lp->useMII = TRUE; lp->useMII = TRUE;
/* Search the MII address space for possible PHY devices */ /* Search the MII address space for possible PHY devices */
for (n=0, lp->mii_cnt=0, i=1; !((i==1) && (n==1)); i=(++i)%DE4X5_MAX_MII) { for (n=0, lp->mii_cnt=0, i=1; !((i==1) && (n==1)); i=(i+1)%DE4X5_MAX_MII) {
lp->phy[lp->active].addr = i; lp->phy[lp->active].addr = i;
if (i==0) n++; /* Count cycles */ if (i==0) n++; /* Count cycles */
while (de4x5_reset_phy(dev)<0) udelay(100);/* Wait for reset */ while (de4x5_reset_phy(dev)<0) udelay(100);/* Wait for reset */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment