From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751567AbdJDWtl (ORCPT ); Wed, 4 Oct 2017 18:49:41 -0400 Received: from mga01.intel.com ([192.55.52.88]:36207 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751268AbdJDWti (ORCPT ); Wed, 4 Oct 2017 18:49:38 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,478,1500966000"; d="scan'208";a="1178748647" From: Jithu Joseph To: tglx@linutronix.de Cc: fenghua.yu@intel.com, tony.luck@intel.com, vikas.shivappa@intel.com, mingo@redhat.com, hpa@zytor.com, reinette.chatre@intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, Jithu Joseph Subject: [PATCH] x86/intel_rdt: Remove redundant assignment Date: Wed, 4 Oct 2017 15:48:57 -0700 Message-Id: <1507157337-18118-1-git-send-email-jithu.joseph@intel.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Jithu Joseph Acked-by: Fenghua Yu --- 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 a869d4a..dc22064 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) -- 1.9.1