linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: unnecessary end 'return;' in void functions
@ 2021-07-26 12:39 Jason Wang
  2021-08-02 18:07 ` Catalin Marinas
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Wang @ 2021-07-26 12:39 UTC (permalink / raw)
  To: catalin.marinas
  Cc: will, maz, mark.rutland, suzuki.poulose, amit.kachhap, dbrazdil,
	linux-arm-kernel, linux-kernel, Jason Wang

The end 'return;' in a void function is useless and verbose. It can
be removed safely.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
 arch/arm64/kernel/cpufeature.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 0ead8bfedf20..23c3456f0aa2 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -1561,8 +1561,6 @@ kpti_install_ng_mappings(const struct arm64_cpu_capabilities *__unused)
 
 	if (!cpu)
 		arm64_use_ng_mappings = true;
-
-	return;
 }
 #else
 static void
-- 
2.32.0


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

* Re: [PATCH] arm64: unnecessary end 'return;' in void functions
  2021-07-26 12:39 [PATCH] arm64: unnecessary end 'return;' in void functions Jason Wang
@ 2021-08-02 18:07 ` Catalin Marinas
  0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2021-08-02 18:07 UTC (permalink / raw)
  To: Jason Wang
  Cc: Will Deacon, maz, amit.kachhap, linux-kernel, suzuki.poulose,
	linux-arm-kernel, mark.rutland, dbrazdil

On Mon, 26 Jul 2021 20:39:40 +0800, Jason Wang wrote:
> The end 'return;' in a void function is useless and verbose. It can
> be removed safely.

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64: unnecessary end 'return;' in void functions
      https://git.kernel.org/arm64/c/8f1fbc975b86

-- 
Catalin


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

end of thread, other threads:[~2021-08-02 18:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 12:39 [PATCH] arm64: unnecessary end 'return;' in void functions Jason Wang
2021-08-02 18:07 ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).