Re: [PATCH v2] nfc: st95hf: remove unnecessary assignment and label

From: Krzysztof Kozlowski
Date: Wed May 26 2021 - 09:56:15 EST


On 25/05/2021 20:56, samirweng1979 wrote:
> From: wengjianfeng <wengjianfeng@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> ---
> drivers/nfc/st95hf/core.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxx>

Best regards,
Krzysztof