From: David S. Miller Date: Wed, 27 May 2009 04:05:19 +0000 (-0700) Subject: net: Remove bogus reference to BUS_ID_SIZE in sysfs code. X-Git-Tag: v2.6.31-rc1~14^2~344 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b0cc7f78ba55e831c16fb8cb5c204d9d2ecc398;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 --- diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index b9641e8..3994680 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) dev->platform_data = net; dev->groups = groups; - BUILD_BUG_ON(BUS_ID_SIZE < IFNAMSIZ); dev_set_name(dev, "%s", net->name); #ifdef CONFIG_SYSFS