mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 18:46:25 -04:00
mlxsw: spectrum_router: remove redundant initialization of pointer br_dev
The pointer br_dev is being initialized with a value that is never read
and is being updated with a new value later on. The initialization
is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
d8e79f1dbc
commit
7cf4eda481
@@ -7574,7 +7574,7 @@ static struct mlxsw_sp_fid *
|
||||
mlxsw_sp_rif_vlan_fid_get(struct mlxsw_sp_rif *rif,
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
struct net_device *br_dev = rif->dev;
|
||||
struct net_device *br_dev;
|
||||
u16 vid;
|
||||
int err;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user