diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-02-20 14:50:30 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-20 15:55:11 +0200 |
commit | 470fe1b540fb50ba8ce01e0ac985602e8fbb108c (patch) | |
tree | c2c0b9b33c1a596c032e0eb330b0d6a66fd9c56c /net/bluetooth/mgmt.c | |
parent | 48c7aba91f372251867d15efc9cf694ceee2de02 (diff) | |
download | lwn-470fe1b540fb50ba8ce01e0ac985602e8fbb108c.tar.gz lwn-470fe1b540fb50ba8ce01e0ac985602e8fbb108c.zip |
Bluetooth: Split sending for HCI raw and control sockets
The sending functions for HCI raw and control sockets have nothing in
common except that they iterate over the socket list. Split them into
two so they can do their job more efficient. In addition the code becomes
more readable.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 18d593f23934..1695d04d927d 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -924,7 +924,7 @@ static int mgmt_event(u16 event, struct hci_dev *hdev, void *data, if (data) memcpy(skb_put(skb, data_len), data, data_len); - hci_send_to_sock(NULL, skb, skip_sk); + hci_send_to_control(skb, skip_sk); kfree_skb(skb); return 0; |