diff options
author | Andreas Gruenbacher <agruen@kernel.org> | 2011-08-24 02:19:41 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-02-17 10:50:36 -0500 |
commit | 137975c13c79f6048aa33a0bf5c7656356ca1e8b (patch) | |
tree | 101418d0a6d25c47c129b1d37bc6e2b691fa10c5 /drivers | |
parent | c60b0251d9d350194c7ae8b1d41885a14e858e65 (diff) |
drbd: Remove useless assertion
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/drbd/drbd_state.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/drbd/drbd_state.c b/drivers/block/drbd/drbd_state.c index 6467e75b4b6d..87ae01199a19 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) | |||
1162 | struct drbd_device *device = w->device; | 1162 | struct drbd_device *device = w->device; |
1163 | 1163 | ||
1164 | after_state_ch(device, ascw->os, ascw->ns, ascw->flags); | 1164 | after_state_ch(device, ascw->os, ascw->ns, ascw->flags); |
1165 | if (ascw->flags & CS_WAIT_COMPLETE) { | 1165 | if (ascw->flags & CS_WAIT_COMPLETE) |
1166 | D_ASSERT(device, ascw->done != NULL); | ||
1167 | complete(ascw->done); | 1166 | complete(ascw->done); |
1168 | } | ||
1169 | kfree(ascw); | 1167 | kfree(ascw); |
1170 | 1168 | ||
1171 | return 0; | 1169 | return 0; |