浏览代码

drbd: Remove useless assertion

Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Andreas Gruenbacher 14 年之前
父节点
当前提交
137975c13c
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      drivers/block/drbd/drbd_state.c

+ 1 - 3
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;