diff options
author | Wang Sheng-Hui <shhuiw@gmail.com> | 2011-09-08 12:32:14 +0200 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-09-12 08:59:20 +0200 |
commit | 484fc254b88257a2d8b3759aa062e8e8b35e0988 (patch) | |
tree | d46d04f9a25a223d46eb94a28ae61542dde236d7 /block | |
parent | 322a8b034003c0d46d39af85bf24fee27b902f48 (diff) | |
download | kernel_goldelico_gta04-484fc254b88257a2d8b3759aa062e8e8b35e0988.zip kernel_goldelico_gta04-484fc254b88257a2d8b3759aa062e8e8b35e0988.tar.gz kernel_goldelico_gta04-484fc254b88257a2d8b3759aa062e8e8b35e0988.tar.bz2 |
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>
Diffstat (limited to 'block')
-rw-r--r-- | block/elevator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/elevator.c b/block/elevator.c index a3b64bc..cb332cb 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -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) { |