mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
drbd: Remove useless assertion
Signed-off-by: Andreas Gruenbacher <[email protected]> Signed-off-by: Philipp Reisner <[email protected]>
This commit is contained in:
parent
c60b0251d9
commit
137975c13c
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue