Skip to content

Commit 33360f2

Browse files
leitaokuba-moo
authored andcommitted
netpoll: Remove unused fields from inet_addr union
Clean up the inet_addr union by removing unused fields that are redundant with existing members: This simplifies the union structure while maintaining all necessary functionality for both IPv4 and IPv6 address handling. Signed-off-by: Breno Leitao <leitao@debian.org> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250723-netconsole_ref-v3-1-8be9b24e4a99@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent f24987e commit 33360f2

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

include/linux/netpoll.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
#include <linux/refcount.h>
1616

1717
union inet_addr {
18-
__u32 all[4];
1918
__be32 ip;
20-
__be32 ip6[4];
21-
struct in_addr in;
2219
struct in6_addr in6;
2320
};
2421

0 commit comments

Comments
 (0)