Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nfc: s3fwrn5: remove unnecessary label

In function s3fwrn5_nci_post_setup, the variable ret is assigned then
goto out label, which just return ret, so we use return to replace it.
Other goto sentences are similar, we use return sentences to replace
goto sentences and delete out label.

Signed-off-by: wengjianfeng <wengjianfeng@yulong.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

wengjianfeng and committed by
David S. Miller
b58c4649 b3feb439

+4 -8
+4 -8
drivers/nfc/s3fwrn5/core.c
··· 124 124 125 125 if (s3fwrn5_firmware_init(info)) { 126 126 //skip bootloader mode 127 - ret = 0; 128 - goto out; 127 + return 0; 129 128 } 130 129 131 130 ret = s3fwrn5_firmware_update(info); 132 131 if (ret < 0) 133 - goto out; 132 + return ret; 134 133 135 134 /* NCI core reset */ 136 135 ··· 138 139 139 140 ret = nci_core_reset(info->ndev); 140 141 if (ret < 0) 141 - goto out; 142 + return ret; 142 143 143 - ret = nci_core_init(info->ndev); 144 - 145 - out: 146 - return ret; 144 + return nci_core_init(info->ndev); 147 145 } 148 146 149 147 static struct nci_ops s3fwrn5_nci_ops = {