diff options
author | Adrian Bunk <bunk@kernel.org> | 2007-12-12 12:51:56 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-12-18 02:29:28 -0500 |
commit | 2fdd82bd8852ec8ebad5c69c45138da25c6f9273 (patch) | |
tree | ff701ec0a8909fa50b79763a49a4eaada5aa759e /block/as-iosched.c | |
parent | 49565124b13bb16607e7f8fc8fb1d9c5c355a1a3 (diff) |
block: let elv_register() return void
elv_register() always returns 0, and there isn't anything it does where
it should return an error (the only error condition is so grave that
it's handled with a BUG_ON).
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/as-iosched.c')
-rw-r--r-- | block/as-iosched.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/block/as-iosched.c b/block/as-iosched.c index 555cd6bf4ce5..cb5e53b05c7c 100644 --- a/block/as-iosched.c +++ b/block/as-iosched.c | |||
@@ -1464,7 +1464,9 @@ static struct elevator_type iosched_as = { | |||
1464 | 1464 | ||
1465 | static int __init as_init(void) | 1465 | static int __init as_init(void) |
1466 | { | 1466 | { |
1467 | return elv_register(&iosched_as); | 1467 | elv_register(&iosched_as); |
1468 | |||
1469 | return 0; | ||
1468 | } | 1470 | } |
1469 | 1471 | ||
1470 | static void __exit as_exit(void) | 1472 | static void __exit as_exit(void) |