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

Commit 0ed54dad authored by Anand Gadiyar's avatar Anand Gadiyar Committed by Gustavo Padovan
Browse files

Bluetooth: remove unnecessary call to hci_sock_cleanup



hci_sock_cleanup is already called after the sock_err label.
It appears that we can drop this call.

Signed-off-by: default avatarAnand Gadiyar <gadiyar@ti.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent b7440a14
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -550,10 +550,8 @@ static int __init bt_init(void)
		goto error;

	err = l2cap_init();
	if (err < 0) {
		hci_sock_cleanup();
	if (err < 0)
		goto sock_err;
	}

	err = sco_init();
	if (err < 0) {