Skip to content

Commit

Permalink
drivers/net/wireless/libertas/if_usb.c: add missing debugging code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Julia Lawall authored and John W. Linville committed Apr 17, 2012
1 parent d9fb646 commit 1e66eda
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/wireless/libertas/if_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 1e66eda

Please sign in to comment.