From: Lepton Wu <ytht.net@gmail.com>
To: netdev@vger.kernel.org
Cc: stefanha@redhat.com, decui@microsoft.com, jhansen@vmware.com,
Lepton Wu <ytht.net@gmail.com>
Subject: [PATCH] Fix ERROR:do not initialise statics to 0 in af_vsock.c
Date: Wed, 9 Jan 2019 15:45:41 -0800 [thread overview]
Message-ID: <20190109234541.22715-1-ytht.net@gmail.com> (raw)
Found by scripts/checkpatch.pl
---
net/vmw_vsock/af_vsock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
index 43a1dec08825..a60df252d3cc 100644
--- a/net/vmw_vsock/af_vsock.c
+++ b/net/vmw_vsock/af_vsock.c
@@ -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)
--
2.20.1.97.g81188d93c3-goog
next reply other threads:[~2019-01-09 23:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-09 23:45 Lepton Wu [this message]
2019-01-10 9:59 ` [PATCH] Fix ERROR:do not initialise statics to 0 in af_vsock.c Stefan Hajnoczi
2019-01-10 18:37 ` [PATCH v2] " Lepton Wu
2019-01-16 4:39 ` [PATCH] " David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190109234541.22715-1-ytht.net@gmail.com \
--to=ytht.net@gmail.com \
--cc=decui@microsoft.com \
--cc=jhansen@vmware.com \
--cc=netdev@vger.kernel.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).