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

Commit 4a2fa2b8 authored by Prasanna Karthik's avatar Prasanna Karthik Committed by Marcel Holtmann
Browse files

Bluetooth: hci_h5: clean up hci_h5 code



This patch fixes checkpatch warnings:
- Comparison to NULL could be re-written
- no space required after a cast

Signed-off-by: default avatarPrasanna Karthik <mkarthi3@visteon.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 239ede3c
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -696,7 +696,7 @@ static struct sk_buff *h5_dequeue(struct hci_uart *hu)
	}

	skb = skb_dequeue(&h5->unrel);
	if (skb != NULL) {
	if (skb) {
		nskb = h5_prepare_pkt(hu, bt_cb(skb)->pkt_type,
				      skb->data, skb->len);
		if (nskb) {
@@ -714,7 +714,7 @@ static struct sk_buff *h5_dequeue(struct hci_uart *hu)
		goto unlock;

	skb = skb_dequeue(&h5->rel);
	if (skb != NULL) {
	if (skb) {
		nskb = h5_prepare_pkt(hu, bt_cb(skb)->pkt_type,
				      skb->data, skb->len);
		if (nskb) {