From: Eric Miao Date: Wed, 24 Aug 2011 23:46:34 +0000 (+1000) Subject: brd_make_request() always returns 0, which doesn't make much sense. X-Git-Tag: next-20110905~1^2~106 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=60a5b9ca8b5eb11b45ac2eb104b819b1ef87bc7c;p=karo-tx-linux.git 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 --- 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