]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_buffers: Inline mlxsw_sp_sb_max_headroom_cells()
authorPetr Machata <petrm@nvidia.com>
Wed, 16 Sep 2020 06:35:25 +0000 (09:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Sep 2020 22:19:30 +0000 (15:19 -0700)
commit3a6ee220c1910720e71ebc0a08b1bd0c1397b69d
tree3dfec12abd55cd04a3e9bcde74cca1ab05d5fffc
parentaba87bb39197fc7b61b2439df2cf2219c15b0110
mlxsw: spectrum_buffers: Inline mlxsw_sp_sb_max_headroom_cells()

This function is now only used from the buffers module, and is a trivial
field reference. Just inline it and drop the related artifacts.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c