aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2024-01-03 16:30:26 -0800
committerStephen Hemminger <stephen@networkplumber.org>2024-01-03 16:30:26 -0800
commit43a0e300dd8633a8e3edf99000bc039262ea2ec6 (patch)
treeb26c6a528bab63ea92df666ad6a3e3a71b2bca65
parent48c969d49ed883be85d774393f3ce45ebcea922b (diff)
downloadiproute2-next-43a0e300dd8633a8e3edf99000bc039262ea2ec6.tar.gz
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 <stephen@networkplumber.org>
-rw-r--r--ip/ipaddress.c2
1 files changed, 0 insertions, 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");
}