From: Phil Sutter Date: Tue, 24 Nov 2015 14:31:03 +0000 (+0100) Subject: ipaddress: drop unnecessary check in ipaddr_list_flush_or_save() X-Git-Tag: v4.4.0~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=906dfe4887672be87b0656a2034f950883f036f6;p=thirdparty%2Fiproute2.git ipaddress: drop unnecessary check in ipaddr_list_flush_or_save() Right after ipaddr_reset_filter(), filter.family is always AF_UNSPEC. Signed-off-by: Phil Sutter --- diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 9811eb4c7..bc8359eb9 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -1451,10 +1451,7 @@ static int ipaddr_list_flush_or_save(int argc, char **argv, int action) ipaddr_reset_filter(oneline, 0); filter.showqueue = 1; - - if (filter.family == AF_UNSPEC) - filter.family = preferred_family; - + filter.family = preferred_family; filter.group = -1; if (action == IPADD_FLUSH) {