]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
Bluetooth: Shrink size of struct l2cap_ctrl fields
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 8 Jun 2014 08:26:57 +0000 (10:26 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:41 +0000 (17:42 +0200)
The struct l2cap_ctrl fields are wasting an unsigned int when all the
bits can fit into an __u8 field.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/bluetooth.h

index 904777c1cd2420486a3df25636f61811ab35c29e..373000de610d4d3077f289a2f7a1967910ef09e3 100644 (file)
@@ -260,15 +260,15 @@ struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock);
 
 /* Skb helpers */
 struct l2cap_ctrl {
-       unsigned int    sframe:1,
-                       poll:1,
-                       final:1,
-                       fcs:1,
-                       sar:2,
-                       super:2;
-       __u16           reqseq;
-       __u16           txseq;
-       __u8            retries;
+       __u8    sframe:1,
+               poll:1,
+               final:1,
+               fcs:1,
+               sar:2,
+               super:2;
+       __u16   reqseq;
+       __u16   txseq;
+       __u8    retries;
 };
 
 struct hci_dev;