Skip to content

Commit 040ae95

Browse files
Yue Haibingkuba-moo
authored andcommitted
net: Remove unused function first_net_device_rcu()
This is unused since commit f04565d ("dev: use name hash for dev_seq_ops") Signed-off-by: Yue Haibing <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 77e12db commit 040ae95

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

include/linux/netdevice.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3316,13 +3316,6 @@ static inline struct net_device *first_net_device(struct net *net)
33163316
net_device_entry(net->dev_base_head.next);
33173317
}
33183318

3319-
static inline struct net_device *first_net_device_rcu(struct net *net)
3320-
{
3321-
struct list_head *lh = rcu_dereference(list_next_rcu(&net->dev_base_head));
3322-
3323-
return lh == &net->dev_base_head ? NULL : net_device_entry(lh);
3324-
}
3325-
33263319
int netdev_boot_setup_check(struct net_device *dev);
33273320
struct net_device *dev_getbyhwaddr(struct net *net, unsigned short type,
33283321
const char *hwaddr);

0 commit comments

Comments
 (0)