]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
nwfilter: Remove unused 'active' in virNWFilterObj
authorJohn Ferlan <jferlan@redhat.com>
Tue, 18 Apr 2017 13:10:45 +0000 (09:10 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 26 Apr 2017 17:13:18 +0000 (13:13 -0400)
It was only ever set to false, which is ironically the default.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/virnwfilterobj.c
src/conf/virnwfilterobj.h

index 5570c721189339c2e7015d8e378b831da0e3e9f2..6606d3b672038c7063944484ac9d01a7d3f2462b 100644 (file)
@@ -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) {
index 2adffd92431aa7b14ac9304a9305e2e971392429..7a2addfcd004cb8190fb1938c8a632489526a648 100644 (file)
@@ -29,7 +29,6 @@ typedef virNWFilterObj *virNWFilterObjPtr;
 struct _virNWFilterObj {
     virMutex lock;
 
-    int active;
     int wantRemoved;
 
     virNWFilterDefPtr def;