From 906dfe4887672be87b0656a2034f950883f036f6 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 24 Nov 2015 15:31:03 +0100 Subject: [PATCH] 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 --- ip/ipaddress.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 9811eb4c..bc8359eb 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) { -- 2.39.5