浏览代码

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>
David S. Miller 16 年之前
父节点
当前提交
2b0cc7f78b
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      net/core/net-sysfs.c

+ 0 - 1
net/core/net-sysfs.c

@@ -499,7 +499,6 @@ int netdev_register_kobject(struct net_device *net)
 	dev->platform_data = net;
 	dev->platform_data = net;
 	dev->groups = groups;
 	dev->groups = groups;
 
 
-	BUILD_BUG_ON(BUS_ID_SIZE < IFNAMSIZ);
 	dev_set_name(dev, "%s", net->name);
 	dev_set_name(dev, "%s", net->name);
 
 
 #ifdef CONFIG_SYSFS
 #ifdef CONFIG_SYSFS