]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: b53: remove redundant premature assignment to new_pvid
authorColin Ian King <colin.king@canonical.com>
Wed, 27 May 2020 12:01:29 +0000 (13:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 18:28:23 +0000 (11:28 -0700)
commit00e9d3f30b43971b7c98abdfbeb3b21202910dc7
treecae2ec495bc273d0be588e5c04de4172d56a43c0
parentef58246290a2449af53fceec037725d54e59ff52
net: dsa: b53: remove redundant premature assignment to new_pvid

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@canonical.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c