diff options
author | Breno Leitao <leitao@debian.org> | 2025-07-02 03:06:33 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-07 18:52:55 -0700 |
commit | 4b52cdfcce21d3cc207a1ddb691e1f8c1fcda6fc (patch) | |
tree | 8caa8a595dde84f59cca8c80356d5270ce84f2a5 /net/unix/af_unix.c | |
parent | 49402a628e959c1cb42c0b3bd9336b20f358c632 (diff) |
netpoll: Improve code clarity with explicit struct size calculations
Replace pointer-dereference sizeof() operations with explicit struct names
for improved readability and maintainability. This change:
1. Replaces `sizeof(*udph)` with `sizeof(struct udphdr)`
2. Replaces `sizeof(*ip6h)` with `sizeof(struct ipv6hdr)`
3. Replaces `sizeof(*iph)` with `sizeof(struct iphdr)`
This will make it easy to move code in the upcoming patches.
No functional changes are introduced by this patch.
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250702-netpoll_untagle_ip-v2-1-13cf3db24e2b@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions