]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mlxsw: spectrum_router: remove redundant initialization of pointer br_dev
authorColin Ian King <colin.king@canonical.com>
Wed, 27 May 2020 08:15:55 +0000 (09:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 18:23:27 +0000 (11:23 -0700)
commit7cf4eda481b235cbc7c210715cce19fde3d23d55
treee0f39c8c61aed1cac767f0055839336bbebd8c40
parentd8e79f1dbcee8032667c0718a654c749d64f6304
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c