]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: st95hf: remove unnecessary assignment and label
authorwengjianfeng <wengjianfeng@yulong.com>
Wed, 26 May 2021 00:56:51 +0000 (08:56 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 May 2021 20:09:56 +0000 (13:09 -0700)
commit1a2bfc6757fba510e9ff62997c17f067925127cd
tree0964f5b8d3837cacf8ce0bf71c44304c5ba288f9
parent76d773ddd2fc80753ead7591f07de8eb61869f6f
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>
drivers/nfc/st95hf/core.c