diff options
author | Eyal Birger <eyal.birger@gmail.com> | 2015-03-01 14:58:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-02 00:19:29 -0500 |
commit | 6368c235777456ddaeaa61360186d8d03a61cb18 (patch) | |
tree | b0b3fb3a82eaf8bac83640333cd1b2eea92ada95 /net/bluetooth/hci_core.c | |
parent | 49a6fe055739a77ef910c283efb99928423c97a0 (diff) | |
download | op-kernel-dev-6368c235777456ddaeaa61360186d8d03a61cb18.zip op-kernel-dev-6368c235777456ddaeaa61360186d8d03a61cb18.tar.gz |
net: bluetooth: compact struct bt_skb_cb by converting boolean fields to bit fields
Convert boolean fields incoming and req_start to bit fields and move
force_active in order save space in bt_skb_cb in an effort to use
a portion of skb->cb[] for storing skb->dropcount.
Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r-- | net/bluetooth/hci_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 85a0655..80f40e8 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -3517,7 +3517,7 @@ int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen, /* Stand-alone HCI commands must be flagged as * single-command requests. */ - bt_cb(skb)->req_start = true; + bt_cb(skb)->req_start = 1; skb_queue_tail(&hdev->cmd_q, skb); queue_work(hdev->workqueue, &hdev->cmd_work); |