提交 56130915 编写于 作者: J Julia Lawall 提交者: David S. Miller

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: NJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b555a3d1
...@@ -2051,7 +2051,7 @@ static u32 vmci_transport_get_local_cid(void) ...@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册