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

View File

@ -505,7 +505,7 @@ static void vsock_pending_work(struct work_struct *work)
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)