From c6b6218e0d65adb6f2ee9795033c28e527ad09b4 Mon Sep 17 00:00:00 2001 From: Eric Miao Date: Sat, 16 Jul 2011 23:31:05 +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