summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum.h
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2023-06-09 20:32:06 +0300
committerDavid S. Miller <davem@davemloft.net>2023-06-12 11:49:29 +0300
commit50f6c3d57e9a7d11ff935198c1d55d37975c2fa4 (patch)
treef0d214cba946b9dac7a456db997b45722c7cbf8b /drivers/net/ethernet/mellanox/mlxsw/spectrum.h
parente069ba07e6c7af69e119316bc87ff44869095f49 (diff)
downloadlinux-50f6c3d57e9a7d11ff935198c1d55d37975c2fa4.tar.xz
mlxsw: spectrum_router: mlxsw_sp_router_fini(): Extract a helper variable
Make mlxsw_sp_router_fini() more similar to the _init() function (and more concise) by extracting the `router' handle to a named variable and using that throughout. The availability of a dedicated `router' variable will come in handy in following patches. Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Amit Cohen <amcohen@nvidia.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum.h')
0 files changed, 0 insertions, 0 deletions