From 3f3e52064127cb09c9298fe41ee0f2cd96bb3dd6 Mon Sep 17 00:00:00 2001 From: dabao1955 Date: Sun, 24 Aug 2025 11:41:18 +0800 Subject: [PATCH] kernel: Remove unnecessary strip in CONFIG_KSU_TRACEPOINT_HOOK check (#353) The 'strip' function is redundant when checking Kconfig variables, as values from CONFIG options (like CONFIG_KSU_TRACEPOINT_HOOK) are already trimmed and do not contain leading/trailing whitespace. Simplify the condition for better readability and maintainability: - Remove unnecessary $(strip ...) - Add consistent spacing around the comma This change aligns with kernel Makefile conventions and improves code clarity without altering behavior. Signed-off-by: dabao1955 --- kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/Makefile b/kernel/Makefile index a9650d0c..e3407357 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -9,7 +9,7 @@ kernelsu-objs += ksud.o kernelsu-objs += embed_ksud.o kernelsu-objs += kernel_compat.o -ifeq ($(strip $(CONFIG_KSU_TRACEPOINT_HOOK)),y) +ifeq ($(CONFIG_KSU_TRACEPOINT_HOOK), y) kernelsu-objs += ksu_trace.o endif