Skip to content

Commit 4900e04

Browse files
ColinIanKingVudentz
authored andcommitted
Bluetooth: btintel_pcie: remove redundant assignment to variable ret
The variable ret is being assigned -ENOMEM however this is never read and it is being re-assigned a new value when the code jumps to label resubmit. The assignment is redundant and can be removed. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 5fe6caa commit 4900e04

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/bluetooth/btintel_pcie.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,10 +752,8 @@ static int btintel_pcie_submit_rx_work(struct btintel_pcie_data *data, u8 status
752752
buf += sizeof(*rfh_hdr);
753753

754754
skb = alloc_skb(len, GFP_ATOMIC);
755-
if (!skb) {
756-
ret = -ENOMEM;
755+
if (!skb)
757756
goto resubmit;
758-
}
759757

760758
skb_put_data(skb, buf, len);
761759
skb_queue_tail(&data->rx_skb_q, skb);

0 commit comments

Comments
 (0)