Bluetooth: Move eir_has_data_field to hci_core.h
[deliverable/linux.git] / net / bluetooth / hci_event.c
index d256042a83cf2a55c4239dd4f0e4aaabdda340e6..e93afebdcf84be90b837d2622532ca5c7709056c 100644 (file)
@@ -2842,31 +2842,6 @@ static inline void hci_sniff_subrate_evt(struct hci_dev *hdev, struct sk_buff *s
        BT_DBG("%s status %d", hdev->name, ev->status);
 }
 
-static inline bool eir_has_data_type(u8 *data, size_t data_len, u8 type)
-{
-       u8 field_len;
-       size_t parsed;
-
-       for (parsed = 0; parsed < data_len - 1; parsed += field_len) {
-               field_len = data[0];
-
-               if (field_len == 0)
-                       break;
-
-               parsed += field_len + 1;
-
-               if (parsed > data_len)
-                       break;
-
-               if (data[1] == type)
-                       return true;
-
-               data += field_len + 1;
-       }
-
-       return false;
-}
-
 static inline void hci_extended_inquiry_result_evt(struct hci_dev *hdev, struct sk_buff *skb)
 {
        struct inquiry_data data;
This page took 0.026704 seconds and 5 git commands to generate.