diff options
author | Lepton Wu <ytht.net@gmail.com> | 2019-01-10 00:45:41 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-16 05:38:29 +0100 |
commit | a22d3251423f94935e06644cfbf4caa5141e89cb (patch) | |
tree | 7ec7d5e172a160d793300cb616741ba9702d0a96 /net/vmw_vsock/af_vsock.c | |
parent | Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsh... (diff) | |
download | linux-a22d3251423f94935e06644cfbf4caa5141e89cb.tar.xz linux-a22d3251423f94935e06644cfbf4caa5141e89cb.zip |
Fix ERROR:do not initialise statics to 0 in af_vsock.c
Found by scripts/checkpatch.pl
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/vmw_vsock/af_vsock.c')
-rw-r--r-- | net/vmw_vsock/af_vsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |