[libvirt] [PATCH v2 03/13] nwfilter: Remove unused 'active' in virNWFilterObj

John Ferlan jferlan at redhat.com
Tue Apr 25 19:30:23 UTC 2017


It was only ever set to false, which is ironically the default

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 src/conf/virnwfilterobj.c | 1 -
 src/conf/virnwfilterobj.h | 1 -
 2 files changed, 2 deletions(-)

diff --git a/src/conf/virnwfilterobj.c b/src/conf/virnwfilterobj.c
index 5570c72..6606d3b 100644
--- a/src/conf/virnwfilterobj.c
+++ b/src/conf/virnwfilterobj.c
@@ -301,7 +301,6 @@ virNWFilterObjAssignDef(virNWFilterObjListPtr nwfilters,
         return NULL;
     }
     virNWFilterObjLock(obj);
-    obj->active = 0;
 
     if (VIR_APPEND_ELEMENT_COPY(nwfilters->objs,
                                 nwfilters->count, obj) < 0) {
diff --git a/src/conf/virnwfilterobj.h b/src/conf/virnwfilterobj.h
index 2adffd9..7a2addf 100644
--- a/src/conf/virnwfilterobj.h
+++ b/src/conf/virnwfilterobj.h
@@ -29,7 +29,6 @@ typedef virNWFilterObj *virNWFilterObjPtr;
 struct _virNWFilterObj {
     virMutex lock;
 
-    int active;
     int wantRemoved;
 
     virNWFilterDefPtr def;
-- 
2.9.3




More information about the libvir-list mailing list