Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07758991 authored by Marcel Holtmann's avatar Marcel Holtmann
Browse files

Bluetooth: Shrink size of struct l2cap_ctrl fields



The struct l2cap_ctrl fields are wasting an unsigned int when all the
bits can fit into an __u8 field.

Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 8d46321c
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -260,7 +260,7 @@ struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock);

/* Skb helpers */
struct l2cap_ctrl {
	unsigned int	sframe:1,
	__u8	sframe:1,
		poll:1,
		final:1,
		fcs:1,