Skip to content

Commit

Permalink
Bluetooth: hci_sync: use hci_skb_event() helper
Browse files Browse the repository at this point in the history
This instance is the only opencoded version of the macro, so have it
follow suit.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Ahmad Fatoum authored and Marcel Holtmann committed May 23, 2022
1 parent 8f9ae5b commit edcb185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/hci_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void hci_req_add_ev(struct hci_request *req, u16 opcode, u32 plen,
if (skb_queue_empty(&req->cmd_q))
bt_cb(skb)->hci.req_flags |= HCI_REQ_START;

bt_cb(skb)->hci.req_event = event;
hci_skb_event(skb) = event;

skb_queue_tail(&req->cmd_q, skb);
}
Expand Down

0 comments on commit edcb185

Please sign in to comment.