summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJovi Zhang <bookjovi@gmail.com>2010-03-15 07:28:00 -0500
committerJason Wessel <jason.wessel@windriver.com>2011-03-25 16:37:30 -0500
commit27029c339b1beebe79bb4e64422ad1bb8d0b6440 (patch)
tree8b4be0918813649ad50fb7ab26f376fee00e21dd /kernel
parentadb4b83c12f9d966ea3478aa14c60511467c9916 (diff)
downloadlinux-27029c339b1beebe79bb4e64422ad1bb8d0b6440.tar.bz2
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/debug/kdb/kdb_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c
index bd3e8e29caa3..38a85428c70f 100644
--- a/kernel/debug/kdb/kdb_main.c
+++ b/kernel/debug/kdb/kdb_main.c
@@ -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; \