]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
Fix ERROR:do not initialise statics to 0 in af_vsock.c
authorLepton Wu <ytht.net@gmail.com>
Wed, 9 Jan 2019 23:45:41 +0000 (15:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jan 2019 04:38:29 +0000 (20:38 -0800)
Found by scripts/checkpatch.pl
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/af_vsock.c

index 43a1dec08825fe824395851a2e81b8cf18f0f518..a60df252d3cc10f3bcd6f3c894736e5a623cbdff 100644 (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)