OSDN Git Service

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)
commitbd3e86a5be721786f7967d64c2c99617637dbe43
tree3dfec12abd55cd04a3e9bcde74cca1ab05d5fffc
parent4c22f29f6369243af177ebfaaa2057aa620f5a64
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