mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 17:41:44 +00:00
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:
parent
9dde6da512
commit
a22d325142
@ -505,7 +505,7 @@ out:
|
|||||||
static int __vsock_bind_stream(struct vsock_sock *vsk,
|
static int __vsock_bind_stream(struct vsock_sock *vsk,
|
||||||
struct sockaddr_vm *addr)
|
struct sockaddr_vm *addr)
|
||||||
{
|
{
|
||||||
static u32 port = 0;
|
static u32 port;
|
||||||
struct sockaddr_vm new_addr;
|
struct sockaddr_vm new_addr;
|
||||||
|
|
||||||
if (!port)
|
if (!port)
|
||||||
|
Loading…
Reference in New Issue
Block a user