diff options
-rw-r--r-- | drivers/bluetooth/ath3k.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c index 333c21289d97..41dadacd3d15 100644 --- a/drivers/bluetooth/ath3k.c +++ b/drivers/bluetooth/ath3k.c | |||
@@ -108,6 +108,7 @@ static int ath3k_probe(struct usb_interface *intf, | |||
108 | { | 108 | { |
109 | const struct firmware *firmware; | 109 | const struct firmware *firmware; |
110 | struct usb_device *udev = interface_to_usbdev(intf); | 110 | struct usb_device *udev = interface_to_usbdev(intf); |
111 | int ret; | ||
111 | 112 | ||
112 | BT_DBG("intf %p id %p", intf, id); | 113 | BT_DBG("intf %p id %p", intf, id); |
113 | 114 | ||
@@ -118,13 +119,10 @@ static int ath3k_probe(struct usb_interface *intf, | |||
118 | return -EIO; | 119 | return -EIO; |
119 | } | 120 | } |
120 | 121 | ||
121 | if (ath3k_load_firmware(udev, firmware)) { | 122 | ret = ath3k_load_firmware(udev, firmware); |
122 | release_firmware(firmware); | ||
123 | return -EIO; | ||
124 | } | ||
125 | release_firmware(firmware); | 123 | release_firmware(firmware); |
126 | 124 | ||
127 | return 0; | 125 | return ret; |
128 | } | 126 | } |
129 | 127 | ||
130 | static void ath3k_disconnect(struct usb_interface *intf) | 128 | static void ath3k_disconnect(struct usb_interface *intf) |