summaryrefslogtreecommitdiff
path: root/net/unix
diff options
context:
space:
mode:
authorPeilin Ye <peilin.ye@bytedance.com>2022-09-23 07:59:13 +0300
committerJakub Kicinski <kuba@kernel.org>2022-09-26 21:00:19 +0300
commit31f1fbcb346c9342f6860c322b3f33b2acbc640b (patch)
treea41df2706cf3b9ca01888b07d6b9fd63ba8f6944 /net/unix
parentc52add61c27ea23501be82a34854edd98e10e061 (diff)
downloadlinux-31f1fbcb346c9342f6860c322b3f33b2acbc640b.tar.xz
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')
0 files changed, 0 insertions, 0 deletions