Skip to content

Commit

Permalink
elevator: use ELV_NAME_MAX instead of magic number 16 for chosen_elev…
Browse files Browse the repository at this point in the history
…ator

We have ELV_NAME_MAX defined to 16, and hence we should use it
instead of the magic nubmer 16 for elevator's name string.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
  • Loading branch information
Wang Sheng-Hui authored and Jens Axboe committed Sep 12, 2011
1 parent 322a8b0 commit 484fc25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ static void elevator_attach(struct request_queue *q, struct elevator_queue *eq,
eq->elevator_data = data;
}

static char chosen_elevator[16];
static char chosen_elevator[ELV_NAME_MAX];

static int __init elevator_setup(char *str)
{
Expand Down

0 comments on commit 484fc25

Please sign in to comment.