diff options
author | David S. Miller <davem@davemloft.net> | 2012-03-18 23:29:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-18 23:29:41 -0400 |
commit | 4da0bd736552e6377b407b3c3d3ae518ebbdd269 (patch) | |
tree | f0da9f843b8033565c3ca4103fccb17a60688326 /drivers/net/wireless/iwlegacy/3945.c | |
parent | 81a430ac1b88b0702c57d2513e247317e810e04d (diff) | |
parent | c16fa4f2ad19908a47c63d8fa436a1178438c7e7 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'drivers/net/wireless/iwlegacy/3945.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/3945.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945.c b/drivers/net/wireless/iwlegacy/3945.c index 456f32da6b26..c5b1d199e0bc 100644 --- a/drivers/net/wireless/iwlegacy/3945.c +++ b/drivers/net/wireless/iwlegacy/3945.c | |||
@@ -1855,11 +1855,12 @@ il3945_bg_reg_txpower_periodic(struct work_struct *work) | |||
1855 | struct il_priv *il = container_of(work, struct il_priv, | 1855 | struct il_priv *il = container_of(work, struct il_priv, |
1856 | _3945.thermal_periodic.work); | 1856 | _3945.thermal_periodic.work); |
1857 | 1857 | ||
1858 | if (test_bit(S_EXIT_PENDING, &il->status)) | ||
1859 | return; | ||
1860 | |||
1861 | mutex_lock(&il->mutex); | 1858 | mutex_lock(&il->mutex); |
1859 | if (test_bit(S_EXIT_PENDING, &il->status) || il->txq == NULL) | ||
1860 | goto out; | ||
1861 | |||
1862 | il3945_reg_txpower_periodic(il); | 1862 | il3945_reg_txpower_periodic(il); |
1863 | out: | ||
1863 | mutex_unlock(&il->mutex); | 1864 | mutex_unlock(&il->mutex); |
1864 | } | 1865 | } |
1865 | 1866 | ||