projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f21b75e
)
net: Remove bogus reference to BUS_ID_SIZE in sysfs code.
author
David S. Miller
<davem@davemloft.net>
Wed, 27 May 2009 04:05:19 +0000
(21:05 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 27 May 2009 04:05:19 +0000
(21:05 -0700)
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>
net/core/net-sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/net-sysfs.c
b/net/core/net-sysfs.c
index b9641e816eee8f8b8681eb1f7242da425374e9d7..3994680c08b976f1d54a626f2ed14bcac770684c 100644
(file)
--- a/
net/core/net-sysfs.c
+++ b/
net/core/net-sysfs.c
@@
-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