diff options
author | Adrian Bunk <bunk@kernel.org> | 2007-12-12 18:51:56 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-12-18 08:29:28 +0100 |
commit | 2fdd82bd8852ec8ebad5c69c45138da25c6f9273 (patch) | |
tree | ff701ec0a8909fa50b79763a49a4eaada5aa759e /block/noop-iosched.c | |
parent | 49565124b13bb16607e7f8fc8fb1d9c5c355a1a3 (diff) | |
download | talos-obmc-linux-2fdd82bd8852ec8ebad5c69c45138da25c6f9273.tar.gz talos-obmc-linux-2fdd82bd8852ec8ebad5c69c45138da25c6f9273.zip |
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/noop-iosched.c')
-rw-r--r-- | block/noop-iosched.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/block/noop-iosched.c b/block/noop-iosched.c index 7563d8aa3944..c23e02969650 100644 --- a/block/noop-iosched.c +++ b/block/noop-iosched.c @@ -101,7 +101,9 @@ static struct elevator_type elevator_noop = { static int __init noop_init(void) { - return elv_register(&elevator_noop); + elv_register(&elevator_noop); + + return 0; } static void __exit noop_exit(void) |