diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 406f54d40956..b1c9f3383d7a 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -702,7 +702,7 @@ static int lbs_thread(void *data) | |||
702 | 702 | ||
703 | if (shouldsleep) { | 703 | if (shouldsleep) { |
704 | lbs_deb_thread("sleeping, connect_status %d, " | 704 | lbs_deb_thread("sleeping, connect_status %d, " |
705 | "ps_mode %d, ps_state %d\n", | 705 | "psmode %d, psstate %d\n", |
706 | priv->connect_status, | 706 | priv->connect_status, |
707 | priv->psmode, priv->psstate); | 707 | priv->psmode, priv->psstate); |
708 | spin_unlock_irq(&priv->driver_lock); | 708 | spin_unlock_irq(&priv->driver_lock); |
@@ -1532,10 +1532,11 @@ static void lbs_remove_rtap(struct lbs_private *priv) | |||
1532 | { | 1532 | { |
1533 | lbs_deb_enter(LBS_DEB_MAIN); | 1533 | lbs_deb_enter(LBS_DEB_MAIN); |
1534 | if (priv->rtap_net_dev == NULL) | 1534 | if (priv->rtap_net_dev == NULL) |
1535 | return; | 1535 | goto out; |
1536 | unregister_netdev(priv->rtap_net_dev); | 1536 | unregister_netdev(priv->rtap_net_dev); |
1537 | free_netdev(priv->rtap_net_dev); | 1537 | free_netdev(priv->rtap_net_dev); |
1538 | priv->rtap_net_dev = NULL; | 1538 | priv->rtap_net_dev = NULL; |
1539 | out: | ||
1539 | lbs_deb_leave(LBS_DEB_MAIN); | 1540 | lbs_deb_leave(LBS_DEB_MAIN); |
1540 | } | 1541 | } |
1541 | 1542 | ||