aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorStefano Garzarella <[email protected]>2021-06-18 13:35:26 +0000
committerDavid S. Miller <[email protected]>2021-06-18 19:59:53 +0000
commit91aa49a8fa0ffa66966be275b2575009cc12fd3b (patch)
tree6cb49e7b655cc363f24a5d479349c6d2a6dba712 /net/unix/af_unix.c
parentvsock: rename vsock_wait_data() (diff)
downloadkernel-91aa49a8fa0ffa66966be275b2575009cc12fd3b.tar.gz
kernel-91aa49a8fa0ffa66966be275b2575009cc12fd3b.zip
vsock/virtio: remove redundant `copy_failed` variable
When memcpy_to_msg() fails in virtio_transport_seqpacket_do_dequeue(), we already set `dequeued_len` with the negative error value returned by memcpy_to_msg(). So we can directly check `dequeued_len` value instead of using a dedicated flag variable to skip the copy path for the rest of fragments. Signed-off-by: Stefano Garzarella <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions