mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
Bluetooth: Unobfuscate tasklet_schedule usage
The tasklet schedule function helpers are just an obfuscation. So remove them and call the schedule functions directly. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
76bca88012
commit
c78ae28314
4 changed files with 18 additions and 28 deletions
|
@ -445,10 +445,10 @@ static int hci_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
|
|||
|
||||
if (test_bit(HCI_RAW, &hdev->flags) || (ogf == 0x3f)) {
|
||||
skb_queue_tail(&hdev->raw_q, skb);
|
||||
hci_sched_tx(hdev);
|
||||
tasklet_schedule(&hdev->tx_task);
|
||||
} else {
|
||||
skb_queue_tail(&hdev->cmd_q, skb);
|
||||
hci_sched_cmd(hdev);
|
||||
tasklet_schedule(&hdev->cmd_task);
|
||||
}
|
||||
} else {
|
||||
if (!capable(CAP_NET_RAW)) {
|
||||
|
@ -457,7 +457,7 @@ static int hci_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
|
|||
}
|
||||
|
||||
skb_queue_tail(&hdev->raw_q, skb);
|
||||
hci_sched_tx(hdev);
|
||||
tasklet_schedule(&hdev->tx_task);
|
||||
}
|
||||
|
||||
err = len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue