]> git.baikalelectronics.ru Git - 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)
commit47358b735d2f69f5abf7f9f7bb53e491a3d23549
treee0f39c8c61aed1cac767f0055839336bbebd8c40
parent945b4de53c67feaac2738614ac127b53c666c565
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