Commit 2b0cc7f7 authored by David S. Miller's avatar David S. Miller

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: default avatarDavid S. Miller <davem@davemloft.net>
parent f21b75e9
...@@ -499,7 +499,6 @@ int netdev_register_kobject(struct net_device *net) ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment