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-20110921~1^2~102 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4559c71773c5f438ae76fe8431be3e0e618c091e;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