bql: fix CONFIG_XPS=n build

netdev_queue_release() should be called even if CONFIG_XPS=n
to properly release device reference.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Eric Dumazet 2011-12-04 12:38:00 +00:00 committed by David S. Miller
parent 4fa48bf3c7
commit b474ae7760

View File

@ -1221,9 +1221,7 @@ static void netdev_queue_release(struct kobject *kobj)
static struct kobj_type netdev_queue_ktype = {
.sysfs_ops = &netdev_queue_sysfs_ops,
#ifdef CONFIG_XPS
.release = netdev_queue_release,
#endif
.default_attrs = netdev_queue_default_attrs,
};