net: fs_enet: Remove fs_get_id()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 4 Aug 2023 13:30:13 +0000 (15:30 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Aug 2023 22:01:29 +0000 (15:01 -0700)
fs_get_id() hasn't been used since commit b219108cbace ("fs_enet:
Remove !CONFIG_PPC_CPM_NEW_BINDING code")

Remove it.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/7a53b88cc40302fcbea59554f5e7067e3594ad53.1691155346.git.christophe.leroy@csgroup.eu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/fs_enet_pd.h

index 77d783f..2351c3d 100644 (file)
@@ -151,15 +151,4 @@ struct fs_mii_fec_platform_info {
        u32 mii_speed;
 };
 
-static inline int fs_get_id(struct fs_platform_info *fpi)
-{
-       if(strstr(fpi->fs_type, "SCC"))
-               return fs_scc_index2id(fpi->fs_no);
-       if(strstr(fpi->fs_type, "FCC"))
-               return fs_fcc_index2id(fpi->fs_no);
-       if(strstr(fpi->fs_type, "FEC"))
-               return fs_fec_index2id(fpi->fs_no);
-       return fpi->fs_no;
-}
-
 #endif