mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]  x86/resctrl: remove unused variable
@ 2019-03-09 17:29 Peng Hao
  2019-03-24 21:10 ` [tip:x86/urgent] x86/resctrl: Remove " tip-bot for Peng Hao
  2019-03-24 21:16 ` tip-bot for Peng Hao
  0 siblings, 2 replies; 3+ messages in thread
From: Peng Hao @ 2019-03-09 17:29 UTC (permalink / raw)
  To: tglx, mingo; +Cc: x86, linux-kernel, Peng Hao

Variable "struct rdt_resource *r" is set but not used. So remove it.

Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
---
 arch/x86/kernel/cpu/resctrl/monitor.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c
index f33f11f..1573a0a 100644
--- a/arch/x86/kernel/cpu/resctrl/monitor.c
+++ b/arch/x86/kernel/cpu/resctrl/monitor.c
@@ -501,11 +501,8 @@ void cqm_handle_limbo(struct work_struct *work)
 void cqm_setup_limbo_handler(struct rdt_domain *dom, unsigned long delay_ms)
 {
 	unsigned long delay = msecs_to_jiffies(delay_ms);
-	struct rdt_resource *r;
 	int cpu;
 
-	r = &rdt_resources_all[RDT_RESOURCE_L3];
-
 	cpu = cpumask_any(&dom->cpu_mask);
 	dom->cqm_work_cpu = cpu;
 
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-24 21:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-09 17:29 [PATCH] x86/resctrl: remove unused variable Peng Hao
2019-03-24 21:10 ` [tip:x86/urgent] x86/resctrl: Remove " tip-bot for Peng Hao
2019-03-24 21:16 ` tip-bot for Peng Hao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®