qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] dirty-bitmap: remove unnecessary return
@ 2016-06-30  8:01 Changlong Xie
  2016-06-30  8:25 ` Fam Zheng
  0 siblings, 1 reply; 6+ messages in thread
From: Changlong Xie @ 2016-06-30  8:01 UTC (permalink / raw)
  To: qemu devel
  Cc: Stefan Hajnoczi, Fam Zheng, Max Reitz, Kevin Wolf, Jeff Cody,
	Changlong Xie

Otherwise, we could never trigger assert(!bitmap->successor)

Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
---
 block/dirty-bitmap.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/block/dirty-bitmap.c b/block/dirty-bitmap.c
index 4902ca5..e9df5ac 100644
--- a/block/dirty-bitmap.c
+++ b/block/dirty-bitmap.c
@@ -131,7 +131,6 @@ int bdrv_dirty_bitmap_create_successor(BlockDriverState *bs,
     if (bdrv_dirty_bitmap_frozen(bitmap)) {
         error_setg(errp, "Cannot create a successor for a bitmap that is "
                    "currently frozen");
-        return -1;
     }
     assert(!bitmap->successor);
 
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-07-01  1:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-30  8:01 [Qemu-devel] [PATCH] dirty-bitmap: remove unnecessary return Changlong Xie
2016-06-30  8:25 ` Fam Zheng
2016-06-30  8:45   ` Changlong Xie
2016-06-30 14:00     ` Jeff Cody
2016-06-30 18:18       ` John Snow
2016-07-01  1:20         ` Changlong Xie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).