Commit 27029c339b1beebe79bb4e64422ad1bb8d0b6440
Committed by
Jason Wessel
1 parent
adb4b83c12
Exists in
master
and in
39 other branches
kdb: code cleanup to use macro instead of value
It's better to use macro KDB_BASE_CMD_MAX instead of 50 Signed-off-by: Jovi Zhang <bookjovi@gmail.com> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
kernel/debug/kdb/kdb_main.c
... | ... | @@ -78,7 +78,7 @@ |
78 | 78 | static kdbtab_t *kdb_commands; |
79 | 79 | #define KDB_BASE_CMD_MAX 50 |
80 | 80 | static int kdb_max_commands = KDB_BASE_CMD_MAX; |
81 | -static kdbtab_t kdb_base_commands[50]; | |
81 | +static kdbtab_t kdb_base_commands[KDB_BASE_CMD_MAX]; | |
82 | 82 | #define for_each_kdbcmd(cmd, num) \ |
83 | 83 | for ((cmd) = kdb_base_commands, (num) = 0; \ |
84 | 84 | num < kdb_max_commands; \ |