projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9fb646
)
drivers/net/wireless/libertas/if_usb.c: add missing debugging code
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Mon, 16 Apr 2012 15:44:00 +0000
(17:44 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Tue, 17 Apr 2012 18:49:59 +0000
(14:49 -0400)
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>
drivers/net/wireless/libertas/if_usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/libertas/if_usb.c
b/drivers/net/wireless/libertas/if_usb.c
index
74da5f1
..
ce4938d
100644
(file)
--- 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)
lbs_deb_enter(LBS_DEB_USB);
- if (priv->psstate != PS_STATE_FULL_POWER)
- return -1;
+ if (priv->psstate != PS_STATE_FULL_POWER) {
+ ret = -1;
+ goto out;
+ }
#ifdef CONFIG_OLPC
if (machine_is_olpc()) {