[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1aecd37b-88e8-e00d-d0b1-2fd989514c19@canonical.com>
Date: Wed, 26 May 2021 09:56:00 -0400
From: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
To: samirweng1979 <samirweng1979@....com>, davem@...emloft.net,
dinghao.liu@....edu.cn
Cc: linux-nfc@...ts.01.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
wengjianfeng <wengjianfeng@...ong.com>
Subject: Re: [PATCH v2] nfc: st95hf: remove unnecessary assignment and label
On 25/05/2021 20:56, samirweng1979 wrote:
> From: wengjianfeng <wengjianfeng@...ong.com>
>
> 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@...ong.com>
> ---
> drivers/nfc/st95hf/core.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
Best regards,
Krzysztof
Powered by blists - more mailing lists