Skip to contentSkip to conversation

kernel-sysctlc-remove-unused-variable-ten_thousand.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 23, 2022

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: kernel/sysctl.c: remove unused variable ten_thousand
has been removed from the -mm tree. Its filename was
kernel-sysctlc-remove-unused-variable-ten_thousand.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Colin Ian King <[email protected]>
Subject: kernel/sysctl.c: remove unused variable ten_thousand

The const variable ten_thousand is not used, it is redundant and can be removed.

Cleans up clang warning:
kernel/sysctl.c:99:18: warning: unused variable 'ten_thousand' [-Wunused-const-variable] static const int ten_thousand = 10000;

Fixes c26da54dc8ca ("printk: move printk sysctl to printk/sysctl.c")

---

 kernel/sysctl.c |    3 ---
 1 file changed, 3 deletions(-)
kernel/sysctl.c renamed from kernel/sysctl.c~kernel-sysctlc-remove-unused-variable-ten_thousand +0 -3
@@ -96,9 +96,6 @@
 
 /* Constants used for minimum and  maximum */
 
-#ifdef CONFIG_PRINTK
-static const int ten_thousand = 10000;
-#endif
 #ifdef CONFIG_PERF_EVENTS
 static const int six_hundred_forty_kb = 640 * 1024;
 #endif

_

Patches currently in -mm which might be from [email protected] are