projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c60b025
)
drbd: Remove useless assertion
author
Andreas Gruenbacher
<agruen@kernel.org>
Wed, 24 Aug 2011 06:19:41 +0000
(08:19 +0200)
committer
Philipp Reisner
<philipp.reisner@linbit.com>
Mon, 17 Feb 2014 15:50:36 +0000
(16:50 +0100)
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
drivers/block/drbd/drbd_state.c
patch
|
blob
|
history
diff --git
a/drivers/block/drbd/drbd_state.c
b/drivers/block/drbd/drbd_state.c
index 6467e75b4b6d7828cf99d83eac6584ebca80bbe9..87ae01199a19ced941aa554a200ec2a57d45606a 100644
(file)
--- 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)
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;