From: Kees Cook Date: Fri, 6 May 2011 00:02:12 +0000 (-0600) Subject: iosched: remove redundant sprintf X-Git-Tag: v3.0-rc1~163^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=490b94be0282c3b67f56453628ff0aaae827a670;p=profile%2Fivi%2Fkernel-x86-ivi.git iosched: remove redundant sprintf After the anticipatory scheduler was dropped, there was no need to special-case the request_module string. As such, drop the redundant sprintf and stack variable. Signed-off-by: Kees Cook Signed-off-by: Jens Axboe --- diff --git a/block/elevator.c b/block/elevator.c index 6f6abc0..3cd0d8c 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -155,13 +155,8 @@ static struct elevator_type *elevator_get(const char *name) e = elevator_find(name); if (!e) { - char elv[ELV_NAME_MAX + strlen("-iosched")]; - spin_unlock(&elv_list_lock); - - snprintf(elv, sizeof(elv), "%s-iosched", name); - - request_module("%s", elv); + request_module("%s-iosched", name); spin_lock(&elv_list_lock); e = elevator_find(name); }