Skip to content

Commit

Permalink
kdb: use ARRAY_SIZE where possible
Browse files Browse the repository at this point in the history
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Jason Wessel <[email protected]>
  • Loading branch information
sashalevin authored and jwessel committed Mar 2, 2013
1 parent e78acf6 commit 5f784f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/debug/kdb/kdb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static kdbmsg_t kdbmsgs[] = {
};
#undef KDBMSG

static const int __nkdb_err = sizeof(kdbmsgs) / sizeof(kdbmsg_t);
static const int __nkdb_err = ARRAY_SIZE(kdbmsgs);


/*
Expand Down Expand Up @@ -175,7 +175,7 @@ static char *__env[] = {
(char *)0,
};

static const int __nenv = (sizeof(__env) / sizeof(char *));
static const int __nenv = ARRAY_SIZE(__env);

struct task_struct *kdb_curr_task(int cpu)
{
Expand Down

0 comments on commit 5f784f7

Please sign in to comment.