Skip to contentSkip to conversation

arm64: unnecessary end 'return;' in void functions

PATCH Applied Jason Wang 2 participants 2 messages Jul 26, 2021 – Aug 2, 2021 arm64

lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 arm64: unnecessary end 'return;' in void functions

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

---
 arch/arm64/kernel/cpufeature.c | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/kernel/cpufeature.c +0 -2
index 0ead8bfedf20..23c3456f0aa2 100644
@@ -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
Signature · 7 lines
2.32.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer Applied
#1 lore raw
Quoted 2 lines · Jason Wang

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
Signature · 1 line
Catalin