Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 838f66e3 authored by Johan Hedberg's avatar Johan Hedberg Committed by Marcel Holtmann
Browse files

Bluetooth: btusb: Remove redundant call to btusb_free_frags()



The btusb_disconnect() callback calls hci_unregister_dev() which in turn
calls btusb_close() if the HCI device is powered. The btusb_close()
function in turn will call btusb_free_frags(). It's therefore
unnecessary to have another call to btusb_free_frags() in the
btusb_disconnect() function. Besides the redundancy the second call
seems to also cause some strange stability issues which this patch then
also fixes.

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent ce6bb929
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2767,7 +2767,6 @@ static void btusb_disconnect(struct usb_interface *intf)
	else if (data->isoc)
		usb_driver_release_interface(&btusb_driver, data->isoc);

	btusb_free_frags(data);
	hci_free_dev(hdev);
}