aboutsummaryrefslogtreecommitdiffstats
path: root/block/deadline-iosched.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-12-12 12:51:56 -0500
committerJens Axboe <jens.axboe@oracle.com>2007-12-18 02:29:28 -0500
commit2fdd82bd8852ec8ebad5c69c45138da25c6f9273 (patch)
treeff701ec0a8909fa50b79763a49a4eaada5aa759e /block/deadline-iosched.c
parent49565124b13bb16607e7f8fc8fb1d9c5c355a1a3 (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/deadline-iosched.c')
-rw-r--r--block/deadline-iosched.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/block/deadline-iosched.c b/block/deadline-iosched.c
index a054eef8dff6..342448c3d2dd 100644
--- a/block/deadline-iosched.c
+++ b/block/deadline-iosched.c
@@ -467,7 +467,9 @@ static struct elevator_type iosched_deadline = {
467 467
468static int __init deadline_init(void) 468static int __init deadline_init(void)
469{ 469{
470 return elv_register(&iosched_deadline); 470 elv_register(&iosched_deadline);
471
472 return 0;
471} 473}
472 474
473static void __exit deadline_exit(void) 475static void __exit deadline_exit(void)