`virtio_transport_send_pkt_info` gets all the transport information from the parameter `t_ops`. There is no need to call `virtio_transport_get_ops()`.
Remove it. Acked-by: Arseniy Krasnov <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Luigi Leonardi <[email protected]> --- Changes in v2: - Removed Fixes tag. - Picked up RoBs - Rebased to latest net-next - Link to v1: https://lore.kernel.org/r/[email protected] --- net/vmw_vsock/virtio_transport_common.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c index 8a9fb23c6e85..a152a9e208d0 100644 --- a/net/vmw_vsock/virtio_transport_common.c +++ b/net/vmw_vsock/virtio_transport_common.c @@ -60,8 +60,6 @@ static bool virtio_transport_can_zcopy(const struct virtio_transport *t_ops, return false; /* Check that transport can send data in zerocopy mode. */ - t_ops = virtio_transport_get_ops(info->vsk); - if (t_ops->can_msgzerocopy) { int pages_to_send = iov_iter_npages(iov_iter, MAX_SKB_FRAGS); --- base-commit: 4c2ffb3ea8a601bb3730754cfaa433e673037cda change-id: 20260407-remove_parameter-f61a3e40cf90 Best regards, -- Luigi Leonardi <[email protected]>

