From: Jo-Philipp Wich Date: Tue, 30 Apr 2013 17:40:41 +0000 (+0200) Subject: Remove referenced to unused FW3_FLAG_DELETED flag X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=commitdiff_plain;h=c6c708a440617af2e46ab159c203e7166f189293;ds=sidebyside Remove referenced to unused FW3_FLAG_DELETED flag --- diff --git a/ipsets.c b/ipsets.c index baa0949..430cf74 100644 --- 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"); } diff --git a/options.h b/options.h index 0ce9152..734d185 100644 --- 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 d5d945b..55f2e6c 100644 --- 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