Browse Source

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: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Julia Lawall 9 years ago
parent
commit
56130915bb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      net/vmw_vsock/vmci_transport.c

+ 1 - 1
net/vmw_vsock/vmci_transport.c

@@ -2051,7 +2051,7 @@ static u32 vmci_transport_get_local_cid(void)
 	return vmci_get_context_id();
 	return vmci_get_context_id();
 }
 }
 
 
-static struct vsock_transport vmci_transport = {
+static const struct vsock_transport vmci_transport = {
 	.init = vmci_transport_socket_init,
 	.init = vmci_transport_socket_init,
 	.destruct = vmci_transport_destruct,
 	.destruct = vmci_transport_destruct,
 	.release = vmci_transport_release,
 	.release = vmci_transport_release,