aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-04-16 11:44:00 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-17 14:49:59 -0400
commit1e66eda1d40c9ce3ff38782da066a14e1b88ac50 (patch)
treee6c78ddb3ba7505f903411df6f65048c5228611f /drivers/net/wireless/libertas
parentd9fb6465802c2279ea14cc26eb66d17c133478b1 (diff)
drivers/net/wireless/libertas/if_usb.c: add missing debugging code
Add a corresponding leave call on error failure. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r--drivers/net/wireless/libertas/if_usb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index 74da5f1ea24..ce4938dec2c 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -1128,8 +1128,10 @@ static int if_usb_suspend(struct usb_interface *intf, pm_message_t message)
1128 1128
1129 lbs_deb_enter(LBS_DEB_USB); 1129 lbs_deb_enter(LBS_DEB_USB);
1130 1130
1131 if (priv->psstate != PS_STATE_FULL_POWER) 1131 if (priv->psstate != PS_STATE_FULL_POWER) {
1132 return -1; 1132 ret = -1;
1133 goto out;
1134 }
1133 1135
1134#ifdef CONFIG_OLPC 1136#ifdef CONFIG_OLPC
1135 if (machine_is_olpc()) { 1137 if (machine_is_olpc()) {