提交 0ed54dad 编写于 作者: A Anand Gadiyar 提交者: Gustavo F. Padovan

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: NAnand Gadiyar <gadiyar@ti.com>
Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
上级 b7440a14
...@@ -550,10 +550,8 @@ static int __init bt_init(void) ...@@ -550,10 +550,8 @@ static int __init bt_init(void)
goto error; goto error;
err = l2cap_init(); err = l2cap_init();
if (err < 0) { if (err < 0)
hci_sock_cleanup();
goto sock_err; goto sock_err;
}
err = sco_init(); err = sco_init();
if (err < 0) { if (err < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册