projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd7cf78
)
Bluetooth: Trivial refactoring
author
Andre Guedes
<andre.guedes@openbossa.org>
Fri, 27 Jul 2012 18:10:10 +0000
(15:10 -0300)
committer
Gustavo Padovan
<gustavo.padovan@collabora.co.uk>
Mon, 6 Aug 2012 18:04:39 +0000
(15:04 -0300)
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>
net/bluetooth/hci_event.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/hci_event.c
b/net/bluetooth/hci_event.c
index 0386e1e72275449f409fa46b52e04ed95c3d6391..e89d7f24136b058d2e506700c3148327f1a2f154 100644
(file)
--- 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;