summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorStefano Garzarella <sgarzare@redhat.com>2021-06-18 15:35:26 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-18 12:59:53 -0700
commit91aa49a8fa0ffa66966be275b2575009cc12fd3b (patch)
tree6cb49e7b655cc363f24a5d479349c6d2a6dba712 /include/linux/platform_data
parent0de5b2e67275695d6ad7369c594feb1578f891fd (diff)
downloadcachepc-linux-91aa49a8fa0ffa66966be275b2575009cc12fd3b.tar.gz
cachepc-linux-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 <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions