]> git.baikalelectronics.ru Git - kernel.git/commit
vsock: remove vm_sockets_get_local_cid()
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 14 Nov 2019 09:57:37 +0000 (10:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 02:12:17 +0000 (18:12 -0800)
commit47b7d38df27ecd74618f00f41e917f2286a498c6
tree8161f228a1fc776f10a438951d1b8691f2facdbd
parentfdd7bdf323f7b4d73b3e23f9fd72cc486d4af9b8
vsock: remove vm_sockets_get_local_cid()

vm_sockets_get_local_cid() is only used in virtio_transport_common.c.
We can replace it calling the virtio_transport_get_ops() and
using the get_local_cid() callback registered by the transport.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/vm_sockets.h
net/vmw_vsock/af_vsock.c
net/vmw_vsock/virtio_transport_common.c