diff options
author | 2022-09-22 21:59:13 -0700 | |
---|---|---|
committer | 2022-09-26 11:00:19 -0700 | |
commit | 31f1fbcb346c9342f6860c322b3f33b2acbc640b (patch) | |
tree | a41df2706cf3b9ca01888b07d6b9fd63ba8f6944 /net/unix/af_unix.c | |
parent | macsec: don't free NULL metadata_dst (diff) | |
download | linux-dev-31f1fbcb346c9342f6860c322b3f33b2acbc640b.tar.xz linux-dev-31f1fbcb346c9342f6860c322b3f33b2acbc640b.zip |
udp: Refactor udp_read_skb()
Delete the unnecessary while loop in udp_read_skb() for readability.
Additionally, since recv_actor() cannot return a value greater than
skb->len (see sk_psock_verdict_recv()), remove the redundant check.
Suggested-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Peilin Ye <peilin.ye@bytedance.com>
Link: https://lore.kernel.org/r/343b5d8090a3eb764068e9f1d392939e2b423747.1663909008.git.peilin.ye@bytedance.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions