Skip to content

Commit 27029c3

Browse files
Jovi Zhangjwessel
authored andcommitted
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>
1 parent adb4b83 commit 27029c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/debug/kdb/kdb_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static unsigned int kdb_continue_catastrophic;
7878
static kdbtab_t *kdb_commands;
7979
#define KDB_BASE_CMD_MAX 50
8080
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];
8282
#define for_each_kdbcmd(cmd, num) \
8383
for ((cmd) = kdb_base_commands, (num) = 0; \
8484
num < kdb_max_commands; \

0 commit comments

Comments
 (0)