x86/intel_rdt: Remove redundant assignment
authorJithu Joseph <jithu.joseph@intel.com>
Wed, 4 Oct 2017 22:48:57 +0000 (15:48 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 5 Oct 2017 11:20:32 +0000 (13:20 +0200)
The assignment to the 'files' variable is immediately overwritten
in the following line. Remove the older assignment, which was meant
specifially for creating control groups files.

Fixes: c7d9aac61311 ("x86/intel_rdt/cqm: Add mkdir support for RDT monitoring")
Reported-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Jithu Joseph <jithu.joseph@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Fenghua Yu <fenghua.yu@intel.com>
Cc: tony.luck@intel.com
Cc: vikas.shivappa@intel.com
Link: https://lkml.kernel.org/r/1507157337-18118-1-git-send-email-jithu.joseph@intel.com
arch/x86/kernel/cpu/intel_rdt_rdtgroup.c

index abd220b..8a61b20 100644 (file)
@@ -1635,7 +1635,6 @@ static int mkdir_rdt_prepare(struct kernfs_node *parent_kn,
                goto out_destroy;
        }
 
-       files = RFTYPE_BASE | RFTYPE_CTRL;
        files = RFTYPE_BASE | BIT(RF_CTRLSHIFT + rtype);
        ret = rdtgroup_add_files(kn, files);
        if (ret) {