From 0e2b7f14451619c243b46202432c75b231571454 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Tue, 1 Dec 2015 12:28:58 +0100 Subject: [PATCH] if: don't rely on total_len --- kernel/mars_if.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/kernel/mars_if.c b/kernel/mars_if.c index 90966fd6..f7647d54 100644 --- a/kernel/mars_if.c +++ b/kernel/mars_if.c @@ -679,15 +679,10 @@ void if_make_request(struct request_queue *q, struct bio *bio) pos += this_len; data += this_len; bv_len -= this_len; - total_len -= this_len; } // while bv_len > 0 } // foreach bvec - if (likely(!total_len)) { - error = 0; - } else { - MARS_ERR("bad rest len = %d\n", total_len); - } + error = 0; err: if (error < 0) {