diff mbox

brd: make brd_make_request() return error code

Message ID 1307077367-6277-1-git-send-email-eric.miao@linaro.org
State Accepted
Headers show

Commit Message

Eric Miao June 3, 2011, 5:02 a.m. UTC
brd_make_request() always returns 0, which doesn't make much sense.

Signed-off-by: Eric Miao <eric.miao@linaro.org>
---
 drivers/block/brd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/drivers/block/brd.c b/drivers/block/brd.c
index dba1c32..a9587ee 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