Commit 906dfe48 authored by Phil Sutter's avatar Phil Sutter Committed by Stephen Hemminger

ipaddress: drop unnecessary check in ipaddr_list_flush_or_save()

Right after ipaddr_reset_filter(), filter.family is always AF_UNSPEC.
Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
parent d25ec03e
......@@ -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.group = -1;
if (action == IPADD_FLUSH) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment