]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Bluetooth: Clean up hci_sniff_subrate_evt function
authorSzymon Janc <szymon.janc@tieto.com>
Thu, 17 Feb 2011 13:16:33 +0000 (14:16 +0100)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 17 Feb 2011 14:29:42 +0000 (11:29 -0300)
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_event.c

index 09cb29e8713abd9f0506e75a99996148b82be235..1741936ddacf28bae23ca63989f0b277d8f47927 100644 (file)
@@ -2242,17 +2242,8 @@ static inline void hci_sync_conn_changed_evt(struct hci_dev *hdev, struct sk_buf
 static inline void hci_sniff_subrate_evt(struct hci_dev *hdev, struct sk_buff *skb)
 {
        struct hci_ev_sniff_subrate *ev = (void *) skb->data;
-       struct hci_conn *conn;
 
        BT_DBG("%s status %d", hdev->name, ev->status);
-
-       hci_dev_lock(hdev);
-
-       conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle));
-       if (conn) {
-       }
-
-       hci_dev_unlock(hdev);
 }
 
 static inline void hci_extended_inquiry_result_evt(struct hci_dev *hdev, struct sk_buff *skb)