mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 06:34:12 +08:00
NFC: nxp-nci: remove unnecessary label
Remove unnecessary label chunk_exit and return directly. Signed-off-by: wengjianfeng <wengjianfeng@yulong.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
61c77533b8
commit
7437a2230e
@ -95,10 +95,8 @@ static int nxp_nci_fw_send_chunk(struct nxp_nci_info *info)
|
|||||||
int r;
|
int r;
|
||||||
|
|
||||||
skb = nci_skb_alloc(info->ndev, info->max_payload, GFP_KERNEL);
|
skb = nci_skb_alloc(info->ndev, info->max_payload, GFP_KERNEL);
|
||||||
if (!skb) {
|
if (!skb)
|
||||||
r = -ENOMEM;
|
return -ENOMEM;
|
||||||
goto chunk_exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
chunk_len = info->max_payload - NXP_NCI_FW_HDR_LEN - NXP_NCI_FW_CRC_LEN;
|
chunk_len = info->max_payload - NXP_NCI_FW_HDR_LEN - NXP_NCI_FW_CRC_LEN;
|
||||||
remaining_len = fw_info->frame_size - fw_info->written;
|
remaining_len = fw_info->frame_size - fw_info->written;
|
||||||
@ -124,7 +122,6 @@ static int nxp_nci_fw_send_chunk(struct nxp_nci_info *info)
|
|||||||
|
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
|
|
||||||
chunk_exit:
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user