[libvirt] [PATCH 2/2] util: Remove virBitmapIsAllClear from virBitmapParse

Erik Skultety eskultet at redhat.com
Fri Apr 10 10:41:13 UTC 2015


This patch partially reverts commit 983f5a which added a check for
invalid nodeset "0,^0" into virBitmapParse function. This change broke
the logic, as an empty bitmap should not cause an error. This should
rather be checked at individual spots.
---
 src/util/virbitmap.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/util/virbitmap.c b/src/util/virbitmap.c
index 5322bce..bf905ab 100644
--- a/src/util/virbitmap.c
+++ b/src/util/virbitmap.c
@@ -416,9 +416,6 @@ virBitmapParse(const char *str,
         }
     }
 
-    if (virBitmapIsAllClear(*bitmap))
-        goto error;
-
     return virBitmapCountBits(*bitmap);
 
  error:
-- 
1.9.3




More information about the libvir-list mailing list