Now that an empty directory can be created with attrs being NULL, make use of this new functionality and remove the dummy attribute list. Signed-off-by: Heiner Kallweit --- net/core/net-sysfs.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 5c0402389c6..f58b59e1126 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -910,13 +910,8 @@ static const struct attribute_group netstat_group = { .attrs = netstat_attrs, }; -static struct attribute *wireless_attrs[] = { - NULL -}; - static const struct attribute_group wireless_group = { .name = "wireless", - .attrs = wireless_attrs, }; static bool wireless_group_needed(struct net_device *ndev) -- 2.56.0