Skip to contentSkip to conversation

x86: smpboot.c: Remove unused variable c

PATCH New Stratos Karafotis 1 participant 1 message Feb 12, 2013 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: smpboot.c: Remove unused variable c

This patch removes the unused variable 'c' in mwait_play_dead and fixes the following warning:

arch/x86/kernel/smpboot.c: In function ‘mwait_play_dead’:
arch/x86/kernel/smpboot.c:1370:22: warning:
unused variable ‘c’ [-Wunused-variable]

---
 arch/x86/kernel/smpboot.c | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kernel/smpboot.c +0 -1
index a6ceaed..7bc998a 100644
@@ -1367,7 +1367,6 @@ static inline void mwait_play_dead(void)
 	unsigned int highest_subcstate = 0;
 	int i;
 	void *mwait_ptr;
-	struct cpuinfo_x86 *c = __this_cpu_ptr(&cpu_info);
 
 	if (!this_cpu_has(X86_FEATURE_MWAIT))
 		return;
Signature · 1 line
1.8.1.2