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

Commit 8528d3f7 authored by Marcel Holtmann's avatar Marcel Holtmann
Browse files

Bluetooth: Fix casting coding style within HCI sockets



The HCI sockets code has still some old casting coding style. Fix this
to match with the rest of the code.

Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 0ebc1818
Loading
Loading
Loading
Loading
+13 −13
Original line number Diff line number Diff line
@@ -991,8 +991,8 @@ static void hci_sock_cmsg(struct sock *sk, struct msghdr *msg,
	}
}

static int hci_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
			    int flags)
static int hci_sock_recvmsg(struct socket *sock, struct msghdr *msg,
			    size_t len, int flags)
{
	int noblock = flags & MSG_DONTWAIT;
	struct sock *sk = sock->sk;
@@ -1211,7 +1211,7 @@ static int hci_sock_sendmsg(struct socket *sock, struct msghdr *msg,
		goto drop;
	}

	hci_skb_pkt_type(skb) = *((unsigned char *) skb->data);
	hci_skb_pkt_type(skb) = skb->data[0];
	skb_pull(skb, 1);

	if (hci_pi(sk)->channel == HCI_CHANNEL_USER) {