aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wavelan_cs.c
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-02-25 07:35:34 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-03-05 14:39:31 -0500
commitb837e606d17a765f404175ae42a15ce17631e7d2 (patch)
tree40ad7f04db09e0dd9a6673ba22fdba19d1c97c54 /drivers/net/wireless/wavelan_cs.c
parentfa09632b0277aa43c6f37161f0a592a1a5b2167d (diff)
wireless, wavelan: spin off by 1
spin can reach -1 after the loop, so 0 is still success. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wavelan_cs.c')
-rw-r--r--drivers/net/wireless/wavelan_cs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/wavelan_cs.c b/drivers/net/wireless/wavelan_cs.c
index de717f8ffd61..1565a0a60973 100644
--- a/drivers/net/wireless/wavelan_cs.c
+++ b/drivers/net/wireless/wavelan_cs.c
@@ -838,9 +838,8 @@ wv_82593_cmd(struct net_device * dev,
838 } 838 }
839 while(((status & SR3_EXEC_STATE_MASK) != SR3_EXEC_IDLE) && (spin-- > 0)); 839 while(((status & SR3_EXEC_STATE_MASK) != SR3_EXEC_IDLE) && (spin-- > 0));
840 840
841 /* If the interrupt hasn't be posted */ 841 /* If the interrupt hasn't been posted */
842 if(spin <= 0) 842 if (spin < 0) {
843 {
844#ifdef DEBUG_INTERRUPT_ERROR 843#ifdef DEBUG_INTERRUPT_ERROR
845 printk(KERN_INFO "wv_82593_cmd: %s timeout (previous command), status 0x%02x\n", 844 printk(KERN_INFO "wv_82593_cmd: %s timeout (previous command), status 0x%02x\n",
846 str, status); 845 str, status);