Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56130915 authored by Julia Lawall's avatar Julia Lawall Committed by David S. Miller
Browse files

VSOCK: constify vsock_transport structure



The vsock_transport structure is never modified, so declare it as const.

Done with the help of Coccinelle.

Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b555a3d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2051,7 +2051,7 @@ static u32 vmci_transport_get_local_cid(void)
	return vmci_get_context_id();
}

static struct vsock_transport vmci_transport = {
static const struct vsock_transport vmci_transport = {
	.init = vmci_transport_socket_init,
	.destruct = vmci_transport_destruct,
	.release = vmci_transport_release,