Re: [PATCH][next] lan743x: remove redundant initialization of variable current_head_index

From: David Miller
Date: Wed Jul 22 2020 - 20:55:52 EST


From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Wed, 22 Jul 2020 16:12:21 +0100

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> The variable current_head_index is being initialized with a value that
> is never read and it is being updated later with a new value. Replace
> the initialization of -1 with the latter assignment.
>
> Addresses-Coverity: ("Unused value")
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Applied, thank you.