ip: merge duplicate if clauses
Subsystems (2)
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
Signed-off-by Stephen Hemminger <[email protected]>
--- ip/ipaddress.c | 2 -- 1 file changed, 2 deletions(-)
ip/ipaddress.c +0 -2
@@ -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
Quoted 4 lines · Stephen Hemminger
The code that handles brief option had two exactly matching if (filter ==
AF_PACKET) clauses; merge themSigned-off-by Stephen Hemminger <[email protected]>
Reviewed-by Petr Machata <[email protected]>
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 themSigned-off-by Stephen Hemminger <[email protected]>--- 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