Skip to content

Commit

Permalink
kernel/sysctl.c: remove unused variable ten_thousand
Browse files Browse the repository at this point in the history
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/[email protected]
Fixes: c26da54 ("printk: move printk sysctl to printk/sysctl.c")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Luis Chamberlain <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
ColinIanKing authored and torvalds committed Jan 22, 2022
1 parent a737a3c commit e565a8e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e565a8e

Please sign in to comment.