Re: [PATCH][next] net/handshake: remove redundant assignment to variable ret
From: Jason Xing
Date: Mon Apr 15 2024 - 08:02:01 EST
On Mon, Apr 15, 2024 at 6:08 PM Colin Ian King <colin.i.king@xxxxxxxxx> wrote:
>
> The variable is being assigned an value and then is being re-assigned
> a new value in the next statement. The assignment is redundant and can
> be removed.
>
> Cleans up clang scan build warning:
> net/handshake/tlshd.c:216:2: warning: Value stored to 'ret' is never
> read [deadcode.DeadStores]
>
> Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx>
Reviewed-by: Jason Xing <kerneljasonxing@xxxxxxxxx>