mac80211: brcmsmac: fix a build warning, till we update bcma
[openwrt.git] / package / mac80211 / patches / 607-rt2x00-dont-try-to-destroy-unallocated-workqueue.patch
1 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c
2 +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
3 @@ -1224,7 +1224,8 @@ void rt2x00lib_remove_dev(struct rt2x00_
4 cancel_work_sync(&rt2x00dev->rxdone_work);
5 cancel_work_sync(&rt2x00dev->txdone_work);
6 }
7 - destroy_workqueue(rt2x00dev->workqueue);
8 + if (rt2x00dev->workqueue)
9 + destroy_workqueue(rt2x00dev->workqueue);
10
11 /*
12 * Free the tx status fifo.
This page took 0.050864 seconds and 5 git commands to generate.