aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-05-27 00:05:19 -0400
committerDavid S. Miller <davem@davemloft.net>2009-05-27 00:05:19 -0400
commit2b0cc7f78ba55e831c16fb8cb5c204d9d2ecc398 (patch)
treea8fc2828879666dd6e98ebd1e82f589225759065 /net
parentf21b75e9d6471d7f4e2110774819be7beafc86d5 (diff)
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. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/net-sysfs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index b9641e816eee..3994680c08b9 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -499,7 +499,6 @@ int netdev_register_kobject(struct net_device *net)
499 dev->platform_data = net; 499 dev->platform_data = net;
500 dev->groups = groups; 500 dev->groups = groups;
501 501
502 BUILD_BUG_ON(BUS_ID_SIZE < IFNAMSIZ);
503 dev_set_name(dev, "%s", net->name); 502 dev_set_name(dev, "%s", net->name);
504 503
505#ifdef CONFIG_SYSFS 504#ifdef CONFIG_SYSFS