From: Andre Guedes Date: Fri, 27 Jul 2012 18:10:10 +0000 (-0300) Subject: Bluetooth: Trivial refactoring X-Git-Tag: v3.7-rc1~70^2~42^2~37^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=230fd16a2333fef9c012b054a127c7d157f7a7af;p=platform%2Fkernel%2Flinux-3.10.git Bluetooth: Trivial refactoring This patch replaces the unlock-and-return statements by the goto statement. Signed-off-by: Andre Guedes Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 0386e1e..e89d7f2 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -3364,8 +3364,7 @@ static void hci_le_conn_complete_evt(struct hci_dev *hdev, struct sk_buff *skb) conn = hci_conn_add(hdev, LE_LINK, &ev->bdaddr); if (!conn) { BT_ERR("No memory for new connection"); - hci_dev_unlock(hdev); - return; + goto unlock; } conn->dst_type = ev->bdaddr_type;