]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
brd_make_request() always returns 0, which doesn't make much sense.
authorEric Miao <eric.miao@linaro.org>
Wed, 24 Aug 2011 23:46:34 +0000 (09:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 9 Sep 2011 06:16:07 +0000 (16:16 +1000)
Signed-off-by: Eric Miao <eric.miao@linaro.org>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/brd.c

index dba1c32e1ddfc48229d93d014fedaa9c370e92e3..a9587ee5136d75d5d48a5f635b13611168d001a9 100644 (file)
@@ -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