From: Anand Gadiyar Date: Tue, 22 Feb 2011 07:13:26 +0000 (+0530) Subject: Bluetooth: remove unnecessary call to hci_sock_cleanup X-Git-Tag: firefly_0821_release~7613^2~967^2~16^2~578^2~79^2~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0ed54dad52e8056f4440da723a4c117f2aef1f68;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Gustavo F. Padovan --- 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) {