qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v4 6/7] commit: remove unused check


From: Fam Zheng
Subject: [Qemu-devel] [PATCH v4 6/7] commit: remove unused check
Date: Mon, 30 Sep 2013 20:02:57 +0800

We support top == active for commit now, remove the check which is dead
code now.

Signed-off-by: Fam Zheng <address@hidden>
---
 block/commit.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/block/commit.c b/block/commit.c
index ac4b7cc..086f8c9 100644
--- a/block/commit.c
+++ b/block/commit.c
@@ -198,13 +198,6 @@ void commit_start(BlockDriverState *bs, BlockDriverState 
*base,
         return;
     }
 
-    /* Once we support top == active layer, remove this check */
-    if (top == bs) {
-        error_setg(errp,
-                   "Top image as the active layer is currently unsupported");
-        return;
-    }
-
     if (top == base) {
         error_setg(errp, "Invalid files for merge: top and base are the same");
         return;
-- 
1.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]