Skip to content

Commit e565a8e

Browse files
ColinIanKingtorvalds
authored andcommitted
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; Link: https://lkml.kernel.org/r/20211221184501.574670-1-colin.i.king@gmail.com Fixes: c26da54 ("printk: move printk sysctl to printk/sysctl.c") Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Acked-by: Luis Chamberlain <mcgrof@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a737a3c commit e565a8e

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

kernel/sysctl.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@
9696

9797
/* Constants used for minimum and maximum */
9898

99-
#ifdef CONFIG_PRINTK
100-
static const int ten_thousand = 10000;
101-
#endif
10299
#ifdef CONFIG_PERF_EVENTS
103100
static const int six_hundred_forty_kb = 640 * 1024;
104101
#endif

0 commit comments

Comments
 (0)