diff options
Diffstat (limited to 'block/elevator.c')
-rw-r--r-- | block/elevator.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/block/elevator.c b/block/elevator.c index bb30f0e92d4d..9ad5ccc4c5ee 100644 --- a/block/elevator.c +++ b/block/elevator.c | |||
@@ -1053,9 +1053,7 @@ ssize_t elv_iosched_store(struct request_queue *q, const char *name, | |||
1053 | return count; | 1053 | return count; |
1054 | 1054 | ||
1055 | strlcpy(elevator_name, name, sizeof(elevator_name)); | 1055 | strlcpy(elevator_name, name, sizeof(elevator_name)); |
1056 | strstrip(elevator_name); | 1056 | e = elevator_get(strstrip(elevator_name)); |
1057 | |||
1058 | e = elevator_get(elevator_name); | ||
1059 | if (!e) { | 1057 | if (!e) { |
1060 | printk(KERN_ERR "elevator: type %s not found\n", elevator_name); | 1058 | printk(KERN_ERR "elevator: type %s not found\n", elevator_name); |
1061 | return -EINVAL; | 1059 | return -EINVAL; |