Skip to content

Commit 484fc25

Browse files
Wang Sheng-HuiJens Axboe
authored andcommitted
elevator: use ELV_NAME_MAX instead of magic number 16 for chosen_elevator
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>
1 parent 322a8b0 commit 484fc25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/elevator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static void elevator_attach(struct request_queue *q, struct elevator_queue *eq,
182182
eq->elevator_data = data;
183183
}
184184

185-
static char chosen_elevator[16];
185+
static char chosen_elevator[ELV_NAME_MAX];
186186

187187
static int __init elevator_setup(char *str)
188188
{

0 commit comments

Comments
 (0)