public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: Remove unnecessary return from void function
@ 2017-06-23 16:23 Anton Vasilyev
  2017-06-24  7:19 ` [tip:x86/cleanups] x86/paravirt: " tip-bot for Anton Vasilyev
  2017-10-27  5:42 ` [PATCH] x86: " Juergen Gross
  0 siblings, 2 replies; 4+ messages in thread
From: Anton Vasilyev @ 2017-06-23 16:23 UTC (permalink / raw)
  To: Jeremy Fitzhardinge
  Cc: Anton Vasilyev, Chris Wright, Alok Kataria, Rusty Russell,
	Thomas Gleixner, Ingo Molnar, x86, virtualization, linux-kernel,
	ldv-project

The patch removes unnecessary return from void function.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru>
---
 arch/x86/include/asm/paravirt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h
index 55fa56f..a3dcf89 100644
--- a/arch/x86/include/asm/paravirt.h
+++ b/arch/x86/include/asm/paravirt.h
@@ -118,7 +118,7 @@ static inline u64 paravirt_read_msr(unsigned msr)
 static inline void paravirt_write_msr(unsigned msr,
 				      unsigned low, unsigned high)
 {
-	return PVOP_VCALL3(pv_cpu_ops.write_msr, msr, low, high);
+	PVOP_VCALL3(pv_cpu_ops.write_msr, msr, low, high);
 }
 
 static inline u64 paravirt_read_msr_safe(unsigned msr, int *err)
-- 
2.7.4

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

end of thread, other threads:[~2017-10-27  8:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-23 16:23 [PATCH] x86: Remove unnecessary return from void function Anton Vasilyev
2017-06-24  7:19 ` [tip:x86/cleanups] x86/paravirt: " tip-bot for Anton Vasilyev
2017-10-27  5:42 ` [PATCH] x86: " Juergen Gross
2017-10-27  8:48   ` Ingo Molnar

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