mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 12:30:55 +07:00
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: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
parent
b7440a14f2
commit
0ed54dad52
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user