aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/bcm43xx/bcm43xx_pio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx_pio.c')
-rw-r--r--drivers/net/wireless/bcm43xx/bcm43xx_pio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_pio.c b/drivers/net/wireless/bcm43xx/bcm43xx_pio.c
index 7bddae910de9..5b6f0a84d017 100644
--- a/drivers/net/wireless/bcm43xx/bcm43xx_pio.c
+++ b/drivers/net/wireless/bcm43xx/bcm43xx_pio.c
@@ -377,7 +377,11 @@ static void bcm43xx_destroy_pioqueue(struct bcm43xx_pioqueue *queue)
377 377
378void bcm43xx_pio_free(struct bcm43xx_private *bcm) 378void bcm43xx_pio_free(struct bcm43xx_private *bcm)
379{ 379{
380 struct bcm43xx_pio *pio = bcm43xx_current_pio(bcm); 380 struct bcm43xx_pio *pio;
381
382 if (!bcm43xx_using_pio(bcm))
383 return;
384 pio = bcm43xx_current_pio(bcm);
381 385
382 bcm43xx_destroy_pioqueue(pio->queue3); 386 bcm43xx_destroy_pioqueue(pio->queue3);
383 pio->queue3 = NULL; 387 pio->queue3 = NULL;