Skip to contentSkip to conversation

ip: merge duplicate if clauses

PATCH Applied Stephen Hemminger 3 participants 3 messages Jan 4, 2024 – Jan 7, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ip: merge duplicate if clauses

The code that handles brief option had two exactly matching if (filter == AF_PACKET) clauses; merge them

---
 ip/ipaddress.c | 2 --
 1 file changed, 2 deletions(-)
ip/ipaddress.c +0 -2
index 8197709d172e..e536912fc603 100644
@@ -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");
 	}
Signature · 1 line
2.43.0
#2 lore raw
In reply to Stephen Hemminger
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:

Hello:

This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:

Quoted 7 lines · On Wed, 3 Jan 2024 16:31:28 -0800 you wrote:

The code that handles brief option had two exactly matching if (filter == AF_PACKET) clauses; merge them

---
 ip/ipaddress.c | 2 --
 1 file changed, 2 deletions(-)

Here is the summary with links:
- [iproute2] ip: merge duplicate if clauses

    https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=43a0e300dd86

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html