diff mbox series

[v2,net-next] netdev: Remove unused functions

Message ID 20200917021910.41448-1-yuehaibing@huawei.com
State Accepted
Delegated to: David Miller
Headers show
Series [v2,net-next] netdev: Remove unused functions | expand

Commit Message

Yue Haibing Sept. 17, 2020, 2:19 a.m. UTC
There is no callers in tree, so can remove it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
---
v2: fix title typo 'funtions' --> 'functions'
---
 include/linux/netdevice.h | 10 ----------
 1 file changed, 10 deletions(-)

Comments

David Miller Sept. 17, 2020, 11:52 p.m. UTC | #1
From: YueHaibing <yuehaibing@huawei.com>
Date: Thu, 17 Sep 2020 10:19:10 +0800

> There is no callers in tree, so can remove it.
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
> ---
> v2: fix title typo 'funtions' --> 'functions'

Applied, thank you.
diff mbox series

Patch

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 157e0242e9ee..909b1fbb0481 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -4677,16 +4677,6 @@  int netdev_class_create_file_ns(const struct class_attribute *class_attr,
 void netdev_class_remove_file_ns(const struct class_attribute *class_attr,
 				 const void *ns);
 
-static inline int netdev_class_create_file(const struct class_attribute *class_attr)
-{
-	return netdev_class_create_file_ns(class_attr, NULL);
-}
-
-static inline void netdev_class_remove_file(const struct class_attribute *class_attr)
-{
-	netdev_class_remove_file_ns(class_attr, NULL);
-}
-
 extern const struct kobj_ns_type_operations net_ns_type_operations;
 
 const char *netdev_drivername(const struct net_device *dev);