From: Andreas Gruenbacher <agruen@kernel.org>
Date: Wed, 24 Aug 2011 06:19:41 +0000 (+0200)
Subject: drbd: Remove useless assertion
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=137975c13c79f6048aa33a0bf5c7656356ca1e8b;p=linux.git

drbd: Remove useless assertion

Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
---

diff --git a/drivers/block/drbd/drbd_state.c b/drivers/block/drbd/drbd_state.c
index 6467e75b4b6d7..87ae01199a19c 100644
--- a/drivers/block/drbd/drbd_state.c
+++ b/drivers/block/drbd/drbd_state.c
@@ -1162,10 +1162,8 @@ static int w_after_state_ch(struct drbd_work *w, int unused)
 	struct drbd_device *device = w->device;
 
 	after_state_ch(device, ascw->os, ascw->ns, ascw->flags);
-	if (ascw->flags & CS_WAIT_COMPLETE) {
-		D_ASSERT(device, ascw->done != NULL);
+	if (ascw->flags & CS_WAIT_COMPLETE)
 		complete(ascw->done);
-	}
 	kfree(ascw);
 
 	return 0;