Bluetooth: Trivial refactoring
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sat Sep 29 10:59:26 EDT 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=230fd16a2333fef9c012b054a127c7d157f7a7af
Commit: 230fd16a2333fef9c012b054a127c7d157f7a7af
Parent: cd7cf78e9bef269ed482ad8ab572f197ae89af3c
Author: Andre Guedes <andre.guedes at openbossa.org>
AuthorDate: Fri Jul 27 15:10:10 2012 -0300
Committer: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
CommitDate: Mon Aug 6 15:04:39 2012 -0300
Bluetooth: Trivial refactoring
This patch replaces the unlock-and-return statements by the goto
statement.
Signed-off-by: Andre Guedes <andre.guedes at openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
---
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 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;
More information about the linux-mtd-cvs
mailing list