Skip to contentSkip to conversation

: net: Remove bogus reference to BUS_ID_SIZE in sysfs code.

PATCH In review David Miller 1 participant 1 message May 27, 2009

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/6 : net: Remove bogus reference to BUS_ID_SIZE in sysfs code.

BUS_ID_SIZE is really no more, and device names are dynamically allocated and thus can be any necessary size.

So remove the BUG check here making sure BUS_ID_SIZE is at least as large as IFNAMSIZ.

---
 net/core/net-sysfs.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
net/core/net-sysfs.c +0 -1
index b9641e8..3994680 100644
@@ -499,7 +499,6 @@ int netdev_register_kobject(struct net_device *net)
 	dev->platform_data = net;
 	dev->groups = groups;
 
-	BUILD_BUG_ON(BUS_ID_SIZE < IFNAMSIZ);
 	dev_set_name(dev, "%s", net->name);
 
 #ifdef CONFIG_SYSFS
Signature · 1 line
1.6.3