提交 137975c1 编写于 作者: A Andreas Gruenbacher 提交者: Philipp Reisner

drbd: Remove useless assertion

Signed-off-by: NAndreas Gruenbacher <agruen@linbit.com>
Signed-off-by: NPhilipp Reisner <philipp.reisner@linbit.com>
上级 c60b0251
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册