summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPeilin Ye <peilin.ye@bytedance.com>2022-09-22 21:59:13 -0700
committerJakub Kicinski <kuba@kernel.org>2022-09-26 11:00:19 -0700
commit31f1fbcb346c9342f6860c322b3f33b2acbc640b (patch)
treea41df2706cf3b9ca01888b07d6b9fd63ba8f6944 /net/unix/af_unix.c
parentc52add61c27ea23501be82a34854edd98e10e061 (diff)
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