summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2024-10-07 17:10:35 +0100
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-11-14 15:33:07 -0500
commit4900e041c3f05dac47c6bce0844203a0703baaa2 (patch)
treed155448ba977cf87371f375621f195869fc9bbfe /drivers
parent5fe6caa62b07fd39cd6a28acc8f92ba2955e11a6 (diff)
downloadlwn-4900e041c3f05dac47c6bce0844203a0703baaa2.tar.gz
lwn-4900e041c3f05dac47c6bce0844203a0703baaa2.zip
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 <colin.i.king@gmail.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/bluetooth/btintel_pcie.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c
index fd4a8bd056fa..9681a4b8a66a 100644
--- a/drivers/bluetooth/btintel_pcie.c
+++ b/drivers/bluetooth/btintel_pcie.c
@@ -752,10 +752,8 @@ static int btintel_pcie_submit_rx_work(struct btintel_pcie_data *data, u8 status
buf += sizeof(*rfh_hdr);
skb = alloc_skb(len, GFP_ATOMIC);
- if (!skb) {
- ret = -ENOMEM;
+ if (!skb)
goto resubmit;
- }
skb_put_data(skb, buf, len);
skb_queue_tail(&data->rx_skb_q, skb);