diff options
author | Alain Michaud <alainm@chromium.org> | 2020-06-11 14:26:10 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-06-12 15:10:46 +0200 |
commit | 32929e1f4ad9adf71f655028e4dd5d87adb97f52 (patch) | |
tree | 0758a252b7ab8ee41f8a3b60668cab8b12223d8a /net/bluetooth/hci_sock.c | |
parent | 00398e1d518309328e8ba7dff00881538ac22c6a (diff) | |
download | linux-32929e1f4ad9adf71f655028e4dd5d87adb97f52.tar.gz linux-32929e1f4ad9adf71f655028e4dd5d87adb97f52.tar.bz2 linux-32929e1f4ad9adf71f655028e4dd5d87adb97f52.zip |
Bluetooth: Use only 8 bits for the HCI CMSG state flags
This change implements suggestions from the code review of the SCO CMSG
state flag patch.
Signed-off-by: Alain Michaud <alainm@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_sock.c')
-rw-r--r-- | net/bluetooth/hci_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c index caf38a8ea6a8..d5627967fc25 100644 --- a/net/bluetooth/hci_sock.c +++ b/net/bluetooth/hci_sock.c @@ -52,7 +52,7 @@ struct hci_pinfo { struct bt_sock bt; struct hci_dev *hdev; struct hci_filter filter; - __u32 cmsg_mask; + __u8 cmsg_mask; unsigned short channel; unsigned long flags; __u32 cookie; @@ -1399,7 +1399,7 @@ done: static void hci_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_buff *skb) { - __u32 mask = hci_pi(sk)->cmsg_mask; + __u8 mask = hci_pi(sk)->cmsg_mask; if (mask & HCI_CMSG_DIR) { int incoming = bt_cb(skb)->incoming; |