Skip to content

Commit f1d7c33

Browse files
idoschdavem330
authored andcommitted
mlxsw: spectrum_fid: Remove unused function
This function is no longer used. Remove it. Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Petr Machata <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 32fd4b4 commit f1d7c33

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

drivers/net/ethernet/mellanox/mlxsw/spectrum.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,6 @@ int mlxsw_sp_fid_port_vid_map(struct mlxsw_sp_fid *fid,
784784
struct mlxsw_sp_port *mlxsw_sp_port, u16 vid);
785785
void mlxsw_sp_fid_port_vid_unmap(struct mlxsw_sp_fid *fid,
786786
struct mlxsw_sp_port *mlxsw_sp_port, u16 vid);
787-
enum mlxsw_sp_rif_type mlxsw_sp_fid_rif_type(const struct mlxsw_sp_fid *fid);
788787
u16 mlxsw_sp_fid_index(const struct mlxsw_sp_fid *fid);
789788
enum mlxsw_sp_fid_type mlxsw_sp_fid_type(const struct mlxsw_sp_fid *fid);
790789
void mlxsw_sp_fid_rif_set(struct mlxsw_sp_fid *fid, struct mlxsw_sp_rif *rif);

drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,6 @@ void mlxsw_sp_fid_port_vid_unmap(struct mlxsw_sp_fid *fid,
349349
fid->fid_family->ops->port_vid_unmap(fid, mlxsw_sp_port, vid);
350350
}
351351

352-
enum mlxsw_sp_rif_type mlxsw_sp_fid_rif_type(const struct mlxsw_sp_fid *fid)
353-
{
354-
return fid->fid_family->rif_type;
355-
}
356-
357352
u16 mlxsw_sp_fid_index(const struct mlxsw_sp_fid *fid)
358353
{
359354
return fid->fid_index;

0 commit comments

Comments
 (0)