aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJithu Joseph <[email protected]>2017-10-04 15:48:57 -0700
committerThomas Gleixner <[email protected]>2017-10-05 13:20:32 +0200
commit3916a4135c696fa226a1abe6d6a0ff7f5edd9a7c (patch)
tree0ff421fe230fa53e2d4535be80ffab4810e2bebb
parent5fd88b60e11b7d81b2c944c1b45834c4a6aa0157 (diff)
x86/intel_rdt: Remove redundant assignment
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 <[email protected]> Signed-off-by: Jithu Joseph <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Fenghua Yu <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
-rw-r--r--arch/x86/kernel/cpu/intel_rdt_rdtgroup.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
index abd220bf6cd7..8a61b20c7e51 100644
--- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
+++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
@@ -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) {