diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2012-07-27 14:10:10 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-08-06 14:04:39 -0400 |
commit | 230fd16a2333fef9c012b054a127c7d157f7a7af (patch) | |
tree | 1709732ce6a48a41845d7a806ea82679aa0430d2 | |
parent | cd7cf78e9bef269ed482ad8ab572f197ae89af3c (diff) |
Bluetooth: Trivial refactoring
This patch replaces the unlock-and-return statements by the goto
statement.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
-rw-r--r-- | net/bluetooth/hci_event.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 0386e1e72275..e89d7f24136b 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) | |||
3364 | conn = hci_conn_add(hdev, LE_LINK, &ev->bdaddr); | 3364 | conn = hci_conn_add(hdev, LE_LINK, &ev->bdaddr); |
3365 | if (!conn) { | 3365 | if (!conn) { |
3366 | BT_ERR("No memory for new connection"); | 3366 | BT_ERR("No memory for new connection"); |
3367 | hci_dev_unlock(hdev); | 3367 | goto unlock; |
3368 | return; | ||
3369 | } | 3368 | } |
3370 | 3369 | ||
3371 | conn->dst_type = ev->bdaddr_type; | 3370 | conn->dst_type = ev->bdaddr_type; |