[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1380572952-30729-5-git-send-email-andi@firstfloor.org>
Date: Mon, 30 Sep 2013 13:29:05 -0700
From: Andi Kleen <andi@...stfloor.org>
To: linux-kernel@...r.kernel.org
Cc: Andi Kleen <ak@...ux.intel.com>, axboe@...nel.dk
Subject: [PATCH 04/11] block: Return error code of elevator init function
From: Andi Kleen <ak@...ux.intel.com>
The error code was ignored, which I assume is a mistake.
Cc: axboe@...nel.dk
Signed-off-by: Andi Kleen <ak@...ux.intel.com>
---
block/elevator.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/block/elevator.c b/block/elevator.c
index 2bcbd8c..6c2a8ee 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -184,7 +184,6 @@ static void elevator_release(struct kobject *kobj)
int elevator_init(struct request_queue *q, char *name)
{
struct elevator_type *e = NULL;
- int err;
if (unlikely(q->elevator))
return 0;
@@ -222,8 +221,7 @@ int elevator_init(struct request_queue *q, char *name)
}
}
- err = e->ops.elevator_init_fn(q, e);
- return 0;
+ return e->ops.elevator_init_fn(q, e);
}
EXPORT_SYMBOL(elevator_init);
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists