diff options
author | Anand Gadiyar <gadiyar@ti.com> | 2011-02-22 12:43:26 +0530 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-25 22:36:58 -0300 |
commit | 0ed54dad52e8056f4440da723a4c117f2aef1f68 (patch) | |
tree | 9f82ee62b1cfb740d219c9cd5428974c225b0ddc /net/bluetooth/af_bluetooth.c | |
parent | b7440a14f28492bac30d7d43fd982fd210c6e971 (diff) | |
download | linux-0ed54dad52e8056f4440da723a4c117f2aef1f68.tar.bz2 |
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>
Diffstat (limited to 'net/bluetooth/af_bluetooth.c')
-rw-r--r-- | net/bluetooth/af_bluetooth.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c index 88af9eb9aa48..8add9b499912 100644 --- a/net/bluetooth/af_bluetooth.c +++ b/net/bluetooth/af_bluetooth.c @@ -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) { |