netdev: Remove unused functions
authorYueHaibing <yuehaibing@huawei.com>
Thu, 17 Sep 2020 02:19:10 +0000 (10:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Sep 2020 23:51:33 +0000 (16:51 -0700)
There is no callers in tree, so can remove it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index 157e024..909b1fb 100644 (file)
@@ -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);