diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-10-10 19:52:42 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-11 01:51:09 -0400 |
commit | 8909f6d2c450d0a878bcb1d1184ed0114c5724c9 (patch) | |
tree | 125f133cff9954b73b6fcef50747f51ff7eb2d59 /drivers/bluetooth | |
parent | 5108699194dfccd8cc324ec6691b2bc810a317ab (diff) |
Bluetooth: Remove unused h4_check_data_len() function
The function h4_check_data_len() is actually not used. So just
remove it.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/hci_h4.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4.c index 8ae9f1ea2bb5..7048a583fe51 100644 --- a/drivers/bluetooth/hci_h4.c +++ b/drivers/bluetooth/hci_h4.c | |||
@@ -124,30 +124,6 @@ static int h4_enqueue(struct hci_uart *hu, struct sk_buff *skb) | |||
124 | return 0; | 124 | return 0; |
125 | } | 125 | } |
126 | 126 | ||
127 | static inline int h4_check_data_len(struct h4_struct *h4, int len) | ||
128 | { | ||
129 | int room = skb_tailroom(h4->rx_skb); | ||
130 | |||
131 | BT_DBG("len %d room %d", len, room); | ||
132 | |||
133 | if (!len) { | ||
134 | hci_recv_frame(h4->rx_skb); | ||
135 | } else if (len > room) { | ||
136 | BT_ERR("Data length is too large"); | ||
137 | kfree_skb(h4->rx_skb); | ||
138 | } else { | ||
139 | h4->rx_state = H4_W4_DATA; | ||
140 | h4->rx_count = len; | ||
141 | return len; | ||
142 | } | ||
143 | |||
144 | h4->rx_state = H4_W4_PACKET_TYPE; | ||
145 | h4->rx_skb = NULL; | ||
146 | h4->rx_count = 0; | ||
147 | |||
148 | return 0; | ||
149 | } | ||
150 | |||
151 | /* Recv data */ | 127 | /* Recv data */ |
152 | static int h4_recv(struct hci_uart *hu, void *data, int count) | 128 | static int h4_recv(struct hci_uart *hu, void *data, int count) |
153 | { | 129 | { |