mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
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>
This commit is contained in:
parent
5fe6caa62b
commit
4900e041c3
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user