summaryrefslogtreecommitdiffstats
path: root/drivers/net/arm/ks8695net.c
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-03-04 09:11:42 +0100
committerDavid S. Miller <davem@davemloft.net>2009-03-04 09:11:42 +0100
commit858b9ced6e73a0f087294c398a1ae70a7eeed94f (patch)
tree81a2298b2c45d90f68b016fb0b4fa05c19a787f5 /drivers/net/arm/ks8695net.c
parentnet: fix tokenring license (diff)
downloadlinux-858b9ced6e73a0f087294c398a1ae70a7eeed94f.tar.xz
linux-858b9ced6e73a0f087294c398a1ae70a7eeed94f.zip
net: more timeouts that reach -1
with while (timeout-- > 0); timeout reaches -1 after the loop, so the tests below are off by one. also don't do an '< 0' test on an unsigned. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/arm/ks8695net.c')
-rw-r--r--drivers/net/arm/ks8695net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/arm/ks8695net.c b/drivers/net/arm/ks8695net.c
index 1cf2f949c0b4..f3a127434897 100644
--- a/drivers/net/arm/ks8695net.c
+++ b/drivers/net/arm/ks8695net.c
@@ -560,7 +560,7 @@ ks8695_reset(struct ks8695_priv *ksp)
msleep(1);
}
- if (reset_timeout == 0) {
+ if (reset_timeout < 0) {
dev_crit(ksp->dev,
"Timeout waiting for DMA engines to reset\n");
/* And blithely carry on */