]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip: merge duplicate if clauses
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 4 Jan 2024 00:30:26 +0000 (16:30 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 4 Jan 2024 00:30:26 +0000 (16:30 -0800)
The code that handles brief option had two exactly matching
if (filter == AF_PACKET) clauses; merge them

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipaddress.c

index 8197709d172eff0bd509de51522872f042ecd2bf..e536912fc603791dc06f4f4188ff1279dec11542 100644 (file)
@@ -929,9 +929,7 @@ static int print_linkinfo_brief(FILE *fp, const char *name,
                                                   ifi->ifi_type,
                                                   b1, sizeof(b1)));
                }
-       }
 
-       if (filter.family == AF_PACKET) {
                print_link_flags(fp, ifi->ifi_flags, m_flag);
                print_string(PRINT_FP, NULL, "%s", "\n");
        }