From a22d3251423f94935e06644cfbf4caa5141e89cb Mon Sep 17 00:00:00 2001 From: Lepton Wu Date: Wed, 9 Jan 2019 15:45:41 -0800 Subject: [PATCH] Fix ERROR:do not initialise statics to 0 in af_vsock.c Found by scripts/checkpatch.pl Reviewed-by: Stefan Hajnoczi Signed-off-by: David S. Miller --- net/vmw_vsock/af_vsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c index 43a1dec08825..a60df252d3cc 100644 --- a/net/vmw_vsock/af_vsock.c +++ b/net/vmw_vsock/af_vsock.c @@ -505,7 +505,7 @@ out: static int __vsock_bind_stream(struct vsock_sock *vsk, struct sockaddr_vm *addr) { - static u32 port = 0; + static u32 port; struct sockaddr_vm new_addr; if (!port)