Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205645
b: refs/heads/master
c: 5945789
h: refs/heads/master
i:
  205643: 7498163
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Jun 18, 2010
1 parent 6382c81 commit 10b4f86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25ebc2f42b07d5aab3b336f5970b8d52b00dd3e2
refs/heads/master: 594578979d0e25e178e0243eca9aa53499b89b05
12 changes: 7 additions & 5 deletions trunk/drivers/staging/wlan-ng/hfa384x_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2805,11 +2805,13 @@ void hfa384x_tx_timeout(wlandevice_t *wlandev)

spin_lock_irqsave(&hw->ctlxq.lock, flags);

if (!hw->wlandev->hwremoved &&
/* Note the bitwise OR, not the logical OR. */
(!test_and_set_bit(WORK_TX_HALT, &hw->usb_flags) |
!test_and_set_bit(WORK_RX_HALT, &hw->usb_flags))) {
schedule_work(&hw->usb_work);
if (!hw->wlandev->hwremoved) {
int sched;

sched = !test_and_set_bit(WORK_TX_HALT, &hw->usb_flags);
sched |= !test_and_set_bit(WORK_RX_HALT, &hw->usb_flags);
if (sched)
schedule_work(&hw->usb_work);
}

spin_unlock_irqrestore(&hw->ctlxq.lock, flags);
Expand Down

0 comments on commit 10b4f86

Please sign in to comment.