From 033c3d788bd2f68a24207d28b80f798df01bfee8 Mon Sep 17 00:00:00 2001 From: Eric Miao Date: Thu, 25 Aug 2011 09:46:34 +1000 Subject: [PATCH] brd_make_request() always returns 0, which doesn't make much sense. Signed-off-by: Eric Miao Cc: Jens Axboe Signed-off-by: Andrew Morton --- drivers/block/brd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/brd.c b/drivers/block/brd.c index dba1c32e1ddf..a9587ee5136d 100644 --- a/drivers/block/brd.c +++ b/drivers/block/brd.c @@ -360,7 +360,7 @@ static int brd_make_request(struct request_queue *q, struct bio *bio) out: bio_endio(bio, err); - return 0; + return err; } #ifdef CONFIG_BLK_DEV_XIP -- 2.39.5