diff options
author | Lepton Wu <ytht.net@gmail.com> | 2019-01-09 15:45:41 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-15 20:38:29 -0800 |
commit | a22d3251423f94935e06644cfbf4caa5141e89cb (patch) | |
tree | 7ec7d5e172a160d793300cb616741ba9702d0a96 /net/vmw_vsock/af_vsock.c | |
parent | 9dde6da51297d751198d431b04b597e7679e5766 (diff) | |
download | linux-a22d3251423f94935e06644cfbf4caa5141e89cb.tar.bz2 |
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) |