Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363758
b: refs/heads/master
c: 318e16b
h: refs/heads/master
v: v3
  • Loading branch information
Nick Østergaard authored and Greg Kroah-Hartman committed Mar 26, 2013
1 parent 43493c5 commit ef9841e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: ba0e60d18c5940ed6e9c58e61b7747e7170b6fbb
refs/heads/master: 318e16b920ce9ad84ee4f715aea7702dd72624ff
12 changes: 5 additions & 7 deletions trunk/drivers/staging/wlan-ng/prism2usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ static int prism2sta_probe_usb(struct usb_interface *interface,
dev = interface_to_usbdev(interface);
wlandev = create_wlan();
if (wlandev == NULL) {
printk(KERN_ERR "%s: Memory allocation failure.\n", dev_info);
dev_err(&interface->dev, "Memory allocation failure.\n");
result = -EIO;
goto failed;
}
hw = wlandev->priv;

if (wlan_setup(wlandev, &(interface->dev)) != 0) {
printk(KERN_ERR "%s: wlan_setup() failed.\n", dev_info);
dev_err(&interface->dev, "wlan_setup() failed.\n");
result = -EIO;
goto failed;
}
Expand All @@ -143,8 +143,7 @@ static int prism2sta_probe_usb(struct usb_interface *interface,
unregister_wlandev(wlandev);
hfa384x_destroy(hw);
result = -EIO;
printk(KERN_ERR
"%s: hfa384x_corereset() failed.\n", dev_info);
dev_err(&interface->dev, "hfa384x_corereset() failed.\n");
goto failed;
}
}
Expand All @@ -158,7 +157,7 @@ static int prism2sta_probe_usb(struct usb_interface *interface,
prism2sta_ifstate(wlandev, P80211ENUM_ifstate_enable);

if (register_wlandev(wlandev) != 0) {
printk(KERN_ERR "%s: register_wlandev() failed.\n", dev_info);
dev_err(&interface->dev, "register_wlandev() failed.\n");
result = -EIO;
goto failed;
}
Expand Down Expand Up @@ -329,8 +328,7 @@ static int prism2sta_resume(struct usb_interface *interface)
if (result != 0) {
unregister_wlandev(wlandev);
hfa384x_destroy(hw);
printk(KERN_ERR
"%s: hfa384x_corereset() failed.\n", dev_info);
dev_err(&interface->dev, "hfa384x_corereset() failed.\n");
kfree(wlandev);
kfree(hw);
wlandev = NULL;
Expand Down

0 comments on commit ef9841e

Please sign in to comment.