Skip to content

Commit

Permalink
Fix ERROR:do not initialise statics to 0 in af_vsock.c
Browse files Browse the repository at this point in the history
Found by scripts/checkpatch.pl
Reviewed-by: Stefan Hajnoczi <[email protected]>

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
LeptonWu authored and davem330 committed Jan 16, 2019
1 parent 9dde6da commit a22d325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/vmw_vsock/af_vsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a22d325

Please sign in to comment.