From: Eric Dumazet Date: Sun, 4 Dec 2011 12:38:00 +0000 (+0000) Subject: bql: fix CONFIG_XPS=n build X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b474ae77609b725098d5a7cc8f69c1c528710d53;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: David S. Miller --- diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 3bf72b638d34..9d134636f87c 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -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, };