Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b837e606 authored by Roel Kluin's avatar Roel Kluin Committed by John W. Linville
Browse files

wireless, wavelan: spin off by 1



spin can reach -1 after the loop, so 0 is still success.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent fa09632b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -838,9 +838,8 @@ wv_82593_cmd(struct net_device * dev,
    }
  while(((status & SR3_EXEC_STATE_MASK) != SR3_EXEC_IDLE) && (spin-- > 0));

  /* If the interrupt hasn't be posted */
  if(spin <= 0)
    {
  /* If the interrupt hasn't been posted */
  if (spin < 0) {
#ifdef DEBUG_INTERRUPT_ERROR
      printk(KERN_INFO "wv_82593_cmd: %s timeout (previous command), status 0x%02x\n",
	     str, status);