Commit 137975c1 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Philipp Reisner
Browse files

drbd: Remove useless assertion

parent c60b0251
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;