projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61c7753
)
NFC: nxp-nci: remove unnecessary label
author
wengjianfeng
<wengjianfeng@yulong.com>
Fri, 18 Jun 2021 08:52:26 +0000
(16:52 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 18 Jun 2021 19:57:30 +0000
(12:57 -0700)
Remove unnecessary label chunk_exit and return directly.
Signed-off-by: wengjianfeng <wengjianfeng@yulong.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/nxp-nci/firmware.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nfc/nxp-nci/firmware.c
b/drivers/nfc/nxp-nci/firmware.c
index dae0c8030e9548c77e7969cf473c7ce39ea27249..119bf305c642850cf5ac4dea28469287e1963457 100644
(file)
--- a/
drivers/nfc/nxp-nci/firmware.c
+++ b/
drivers/nfc/nxp-nci/firmware.c
@@
-95,10
+95,8
@@
static int nxp_nci_fw_send_chunk(struct nxp_nci_info *info)
int r;
skb = nci_skb_alloc(info->ndev, info->max_payload, GFP_KERNEL);
- if (!skb) {
- r = -ENOMEM;
- goto chunk_exit;
- }
+ if (!skb)
+ return -ENOMEM;
chunk_len = info->max_payload - NXP_NCI_FW_HDR_LEN - NXP_NCI_FW_CRC_LEN;
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);
-chunk_exit:
return r;
}