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>
This commit is contained in:
Lepton Wu 2019-01-09 15:45:41 -08:00 committed by David S. Miller
parent 9dde6da512
commit a22d325142
1 changed files with 1 additions and 1 deletions

View File

@ -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)