qemu-trivial
[Top][All Lists]
Advanced

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

[PATCH] block/qcow2-cluster: remove dead code


From: Elena Afanasova
Subject: [PATCH] block/qcow2-cluster: remove dead code
Date: Thu, 15 Oct 2020 05:13:54 -0700
User-agent: Evolution 3.36.4-0ubuntu1

Since handle_dependencies() returns 0 or -EAGAIN the following case can be 
removed.
Spotted by PVS-Studio.

Signed-off-by: Elena Afanasova <eafanasova@gmail.com>
---
 block/qcow2-cluster.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c
index aa87d3e99b..e2e0db0cc9 100644
--- a/block/qcow2-cluster.c
+++ b/block/qcow2-cluster.c
@@ -1806,8 +1806,6 @@ again:
              * structs before starting over. */
             assert(*m == NULL);
             goto again;
-        } else if (ret < 0) {
-            return ret;
         } else if (cur_bytes == 0) {
             break;
         } else {
-- 
2.25.1





reply via email to

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