From: Stephen Hemminger Date: Thu, 4 Jan 2024 00:30:26 +0000 (-0800) Subject: ip: merge duplicate if clauses X-Git-Tag: v6.7.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43a0e300dd8633a8e3edf99000bc039262ea2ec6;p=thirdparty%2Fiproute2.git ip: merge duplicate if clauses The code that handles brief option had two exactly matching if (filter == AF_PACKET) clauses; merge them Signed-off-by: Stephen Hemminger --- diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 8197709d1..e536912fc 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -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"); }