diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-05-27 11:15:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-27 21:23:27 +0300 |
commit | 7cf4eda481b235cbc7c210715cce19fde3d23d55 (patch) | |
tree | e0f39c8c61aed1cac767f0055839336bbebd8c40 /drivers | |
parent | d8e79f1dbcee8032667c0718a654c749d64f6304 (diff) | |
download | linux-7cf4eda481b235cbc7c210715cce19fde3d23d55.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c index c939b3596566..770de0222e7b 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c @@ -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; |