OSDN Git Service

mlxsw: core: remove unnecessary function mlxsw_core_driver_put
authorYueHaibing <yuehaibing@huawei.com>
Fri, 10 Aug 2018 02:37:30 +0000 (10:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Aug 2018 21:40:57 +0000 (14:40 -0700)
commit4f23c43c414d81b377a07b936e7edfe7167660b5
treee5d6d1fe054a4e37a2f623269ad61468cb59f0eb
parent0f5c6c30a0f8c629b92ecdaef61b315c43fde10a
mlxsw: core: remove unnecessary function mlxsw_core_driver_put

The function mlxsw_core_driver_put only traverse mlxsw_core_driver_list
to find the matched mlxsw_driver,but never used it.
So it can be removed safely.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.c