if: don't rely on total_len

This commit is contained in:
Thomas Schoebel-Theuer 2015-12-01 12:28:58 +01:00 committed by Thomas Schoebel-Theuer
parent 2633a24d67
commit 0e2b7f1445
1 changed files with 1 additions and 6 deletions

View File

@ -679,15 +679,10 @@ void if_make_request(struct request_queue *q, struct bio *bio)
pos += this_len; pos += this_len;
data += this_len; data += this_len;
bv_len -= this_len; bv_len -= this_len;
total_len -= this_len;
} // while bv_len > 0 } // while bv_len > 0
} // foreach bvec } // foreach bvec
if (likely(!total_len)) {
error = 0; error = 0;
} else {
MARS_ERR("bad rest len = %d\n", total_len);
}
err: err:
if (error < 0) { if (error < 0) {