From 43a0e300dd8633a8e3edf99000bc039262ea2ec6 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 3 Jan 2024 16:30:26 -0800 Subject: [PATCH] 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 --- ip/ipaddress.c | 2 -- 1 file changed, 2 deletions(-) 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"); } -- 2.47.2