From: Andreas Gruenbacher <agruen@linbit.com>
Date: Fri, 17 Dec 2010 22:08:33 +0000 (+0100)
Subject: drbd: Remove unnecessary assertion
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1097e9a80cc1820501ae01e35f8c2872628fc86f;p=linux.git

drbd: Remove unnecessary assertion

This is also checked further below in the same function.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
---

diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c
index fa799e372babb..f91f9c9a815cf 100644
--- a/drivers/block/drbd/drbd_req.c
+++ b/drivers/block/drbd/drbd_req.c
@@ -1010,7 +1010,6 @@ int drbd_make_request(struct request_queue *q, struct bio *bio)
 	 */
 	D_ASSERT(bio->bi_size > 0);
 	D_ASSERT(IS_ALIGNED(bio->bi_size, 512));
-	D_ASSERT(bio->bi_idx == 0);
 
 	/* to make some things easier, force alignment of requests within the
 	 * granularity of our hash tables */