summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/st-nci
diff options
context:
space:
mode:
authorwengjianfeng <wengjianfeng@yulong.com>2021-05-26 02:56:51 +0200
committerJakub Kicinski <kuba@kernel.org>2021-05-26 22:09:56 +0200
commit568e7142a15f821867a39797f5b098070df4a9c8 (patch)
tree0964f5b8d3837cacf8ce0bf71c44304c5ba288f9 /drivers/nfc/st-nci
parentnet: wwan: core: Add WWAN device index sysfs attribute (diff)
downloadlinux-568e7142a15f821867a39797f5b098070df4a9c8.tar.xz
linux-568e7142a15f821867a39797f5b098070df4a9c8.zip
nfc: st95hf: remove unnecessary assignment and label
In function st95hf_in_send_cmd, the variable rc is assigned then goto error label, which just returns rc, so we use return to replace it. Since error label only used once in the function, so we remove error label. Signed-off-by: wengjianfeng <wengjianfeng@yulong.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Link: https://lore.kernel.org/r/20210526005651.12652-1-samirweng1979@163.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/nfc/st-nci')
0 files changed, 0 insertions, 0 deletions