mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
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>
This commit is contained in:
parent
adb4b83c12
commit
27029c339b
@ -78,7 +78,7 @@ static unsigned int kdb_continue_catastrophic;
|
||||
static kdbtab_t *kdb_commands;
|
||||
#define KDB_BASE_CMD_MAX 50
|
||||
static int kdb_max_commands = KDB_BASE_CMD_MAX;
|
||||
static kdbtab_t kdb_base_commands[50];
|
||||
static kdbtab_t kdb_base_commands[KDB_BASE_CMD_MAX];
|
||||
#define for_each_kdbcmd(cmd, num) \
|
||||
for ((cmd) = kdb_base_commands, (num) = 0; \
|
||||
num < kdb_max_commands; \
|
||||
|
Loading…
Reference in New Issue
Block a user