sungem: another error printed one too early
Another error was printed one too early. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0d5048a96f
commit
d13c11f6f7
|
@ -1157,7 +1157,7 @@ static void gem_pcs_reset(struct gem *gp)
|
|||
if (limit-- <= 0)
|
||||
break;
|
||||
}
|
||||
if (limit <= 0)
|
||||
if (limit < 0)
|
||||
printk(KERN_WARNING "%s: PCS reset bit would not clear.\n",
|
||||
gp->dev->name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue