[PATCH] [BLOCK] request_module() use format string

From: maximilian attems
Date: Thu Jun 12 2008 - 00:47:21 EST


similar to 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b,
but protected with safte checks.
anyway seems cleaner and easier to exclude.

Signed-off-by: maximilian attems <max@xxxxxxx>
---
block/elevator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/elevator.c b/block/elevator.c
index 902dd13..a00eb38 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -144,7 +144,7 @@ static struct elevator_type *elevator_get(const char *name)
else
sprintf(elv, "%s-iosched", name);

- request_module(elv);
+ request_module("%s", elv);
spin_lock(&elv_list_lock);
e = elevator_find(name);
}
--
1.5.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/