Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263536
b: refs/heads/master
c: 543cc38
h: refs/heads/master
v: v3
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Aug 22, 2011
1 parent 7dc5157 commit f24bf3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ecb4433550f0620f3d1471ae7099037ede30a91e
refs/heads/master: 543cc38c8fe86deba4169977c61eb88491036837
14 changes: 1 addition & 13 deletions trunk/drivers/net/wireless/rt2x00/rt2x00usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,18 +871,8 @@ int rt2x00usb_suspend(struct usb_interface *usb_intf, pm_message_t state)
{
struct ieee80211_hw *hw = usb_get_intfdata(usb_intf);
struct rt2x00_dev *rt2x00dev = hw->priv;
int retval;

retval = rt2x00lib_suspend(rt2x00dev, state);
if (retval)
return retval;

/*
* Decrease usbdev refcount.
*/
usb_put_dev(interface_to_usbdev(usb_intf));

return 0;
return rt2x00lib_suspend(rt2x00dev, state);
}
EXPORT_SYMBOL_GPL(rt2x00usb_suspend);

Expand All @@ -891,8 +881,6 @@ int rt2x00usb_resume(struct usb_interface *usb_intf)
struct ieee80211_hw *hw = usb_get_intfdata(usb_intf);
struct rt2x00_dev *rt2x00dev = hw->priv;

usb_get_dev(interface_to_usbdev(usb_intf));

return rt2x00lib_resume(rt2x00dev);
}
EXPORT_SYMBOL_GPL(rt2x00usb_resume);
Expand Down

0 comments on commit f24bf3d

Please sign in to comment.