Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1706317 > unrolled thread

[PATCH][next] x86/intel_rdt: remove redundant assignment to files

Started byColin King <colin.king@canonical.com>
First post2017-08-08 12:50 +0200
Last post2017-08-08 12:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH][next] x86/intel_rdt: remove redundant assignment to files Colin King <colin.king@canonical.com> - 2017-08-08 12:50 +0200

#1706317 — [PATCH][next] x86/intel_rdt: remove redundant assignment to files

FromColin King <colin.king@canonical.com>
Date2017-08-08 12:50 +0200
Subject[PATCH][next] x86/intel_rdt: remove redundant assignment to files
Message-ID<ucaff-767-1@gated-at.bofh.it>
From: Colin Ian King <colin.king@canonical.com>

The variable files is assigned twice, the first assignment
is redundant and can be removed.

Detected by CoverityScan, CID#1452634 ("Unused value")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
index 39006f36e695..0d3b14444483 100644
--- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
+++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
@@ -1560,7 +1560,6 @@ static int mkdir_rdt_prepare(struct kernfs_node *parent_kn,
 	if (ret)
 		goto out_destroy;
 
-	files = RFTYPE_BASE | RFTYPE_CTRL;
 	files = RFTYPE_BASE | BIT(RF_CTRLSHIFT + rtype);
 	ret = rdtgroup_add_files(kn, files);
 	if (ret)
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web