Skip to content
Commit 568e7142 authored by wengjianfeng's avatar wengjianfeng Committed by Jakub Kicinski
Browse files

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: default avatarwengjianfeng <wengjianfeng@yulong.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210526005651.12652-1-samirweng1979@163.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent e4e92ee7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment