Bluetooth: Remove exported hci_recv_fragment function
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 16 Sep 2014 19:36:09 +0000 (21:36 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 17 Sep 2014 07:23:03 +0000 (10:23 +0300)
The hci_recv_fragment function is no longer used by any driver and thus
do not export it. In fact it is not even needed by the core and it can
be removed altogether.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c

index 206b92bfeebbdd301d01764d9328b64e06fe4415..37ff1aef0845e9c2ef0335b95c87b93b65e9c025 100644 (file)
@@ -926,7 +926,6 @@ int hci_remove_remote_oob_data(struct hci_dev *hdev, bdaddr_t *bdaddr);
 void hci_event_packet(struct hci_dev *hdev, struct sk_buff *skb);
 
 int hci_recv_frame(struct hci_dev *hdev, struct sk_buff *skb);
-int hci_recv_fragment(struct hci_dev *hdev, int type, void *data, int count);
 int hci_recv_stream_fragment(struct hci_dev *hdev, void *data, int count);
 
 void hci_init_sysfs(struct hci_dev *hdev);
index 41948678f5145e707d21aa6016483034aee16582..cb05d7f16a34acc0ca78958d3e5d612453f7d154 100644 (file)
@@ -4374,26 +4374,6 @@ static int hci_reassembly(struct hci_dev *hdev, int type, void *data,
        return remain;
 }
 
-int hci_recv_fragment(struct hci_dev *hdev, int type, void *data, int count)
-{
-       int rem = 0;
-
-       if (type < HCI_ACLDATA_PKT || type > HCI_EVENT_PKT)
-               return -EILSEQ;
-
-       while (count) {
-               rem = hci_reassembly(hdev, type, data, count, type - 1);
-               if (rem < 0)
-                       return rem;
-
-               data += (count - rem);
-               count = rem;
-       }
-
-       return rem;
-}
-EXPORT_SYMBOL(hci_recv_fragment);
-
 #define STREAM_REASSEMBLY 0
 
 int hci_recv_stream_fragment(struct hci_dev *hdev, void *data, int count)
This page took 0.044039 seconds and 5 git commands to generate.