projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae9e78a
)
net: fs_enet: Remove fs_get_id()
author
Christophe Leroy
<christophe.leroy@csgroup.eu>
Fri, 4 Aug 2023 13:30:13 +0000
(15:30 +0200)
committer
Jakub 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
patch
|
blob
|
history
diff --git
a/include/linux/fs_enet_pd.h
b/include/linux/fs_enet_pd.h
index
77d783f
..
2351c3d
100644
(file)
--- a/
include/linux/fs_enet_pd.h
+++ b/
include/linux/fs_enet_pd.h
@@
-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