Re: [PATCH] net: dsa: b53: remove redundant premature assignment to new_pvid

From: David Miller
Date: Wed May 27 2020 - 14:48:28 EST


From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Wed, 27 May 2020 13:01:29 +0100

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Variable new_pvid is being assigned with a value that is never read,
> the following if statement updates new_pvid with a new value in both
> of the if paths. The assignment is redundant and can be removed.
>
> Addresses-Coverity: ("Unused value")
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Applied to net-next, thanks.