提交 b837e606 编写于 作者: R Roel Kluin 提交者: John W. Linville

wireless, wavelan: spin off by 1

spin can reach -1 after the loop, so 0 is still success.
Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 fa09632b
...@@ -838,9 +838,8 @@ wv_82593_cmd(struct net_device * dev, ...@@ -838,9 +838,8 @@ wv_82593_cmd(struct net_device * dev,
} }
while(((status & SR3_EXEC_STATE_MASK) != SR3_EXEC_IDLE) && (spin-- > 0)); while(((status & SR3_EXEC_STATE_MASK) != SR3_EXEC_IDLE) && (spin-- > 0));
/* If the interrupt hasn't be posted */ /* If the interrupt hasn't been posted */
if(spin <= 0) if (spin < 0) {
{
#ifdef DEBUG_INTERRUPT_ERROR #ifdef DEBUG_INTERRUPT_ERROR
printk(KERN_INFO "wv_82593_cmd: %s timeout (previous command), status 0x%02x\n", printk(KERN_INFO "wv_82593_cmd: %s timeout (previous command), status 0x%02x\n",
str, status); str, status);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册