Remove referenced to unused FW3_FLAG_DELETED flag
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 30 Apr 2013 17:40:41 +0000 (19:40 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 30 Apr 2013 18:51:40 +0000 (20:51 +0200)
ipsets.c
options.h
zones.c

index baa094933c622fb8e31f14f31114c353058aa2ef..430cf7485555060e5c149514c42c4f33a0090b10 100644 (file)
--- a/ipsets.c
+++ b/ipsets.c
@@ -364,8 +364,7 @@ fw3_create_ipsets(struct fw3_state *state)
                return;
 
        list_for_each_entry(ipset, &state->ipsets, list)
-               if (!hasbit(ipset->flags[0], FW3_FLAG_DELETED))
-                       create_ipset(ipset, state);
+               create_ipset(ipset, state);
 
        fw3_pr("quit\n");
 }
index 0ce9152e630be290aa89eea0b6ce4b0101834943..734d1858ce205be85706e5ebecd359e8127f5af7 100644 (file)
--- a/options.h
+++ b/options.h
@@ -79,7 +79,6 @@ enum fw3_flag
        FW3_FLAG_MTU_FIX       = 18,
        FW3_FLAG_DROP_INVALID  = 19,
        FW3_FLAG_HOTPLUG       = 20,
-       FW3_FLAG_DELETED       = 21,
 
        __FW3_FLAG_MAX
 };
diff --git a/zones.c b/zones.c
index d5d945bc52d8234ea3117852c67a023c40848d0a..55f2e6c105bceb1424c32d81b652d4d395718554 100644 (file)
--- a/zones.c
+++ b/zones.c
@@ -487,8 +487,7 @@ fw3_print_zone_chains(struct fw3_state *state, enum fw3_family family,
        struct fw3_zone *zone;
 
        list_for_each_entry(zone, &state->zones, list)
-               if (!hasbit(zone->flags[0], FW3_FLAG_DELETED))
-                       print_zone_chain(state, family, table, reload, zone);
+               print_zone_chain(state, family, table, reload, zone);
 }
 
 void
@@ -498,8 +497,7 @@ fw3_print_zone_rules(struct fw3_state *state, enum fw3_family family,
        struct fw3_zone *zone;
 
        list_for_each_entry(zone, &state->zones, list)
-               if (!hasbit(zone->flags[0], FW3_FLAG_DELETED))
-                       print_zone_rule(state, family, table, reload, zone);
+               print_zone_rule(state, family, table, reload, zone);
 }
 
 void