[PATCH 1/3] vxlan: silence one build warning

From: Zhi Yong Wu
Date: Fri Oct 25 2013 - 03:51:57 EST

From: Zhi Yong Wu <wuzhy@xxxxxxxxxxxxxxxxxx>

drivers/net/vxlan.c: In function âvxlan_sock_addâ:
drivers/net/vxlan.c:2298:11: warning: âsockâ may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/net/vxlan.c:2275:17: note: âsockâ was declared here
LD drivers/net/built-in.o

Signed-off-by: Zhi Yong Wu <wuzhy@xxxxxxxxxxxxxxxxxx>
drivers/net/vxlan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 2ef5b62..e15f1af 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -2272,7 +2272,7 @@ static struct vxlan_sock *vxlan_socket_create(struct net *net, __be16 port,
struct vxlan_net *vn = net_generic(net, vxlan_net_id);
struct vxlan_sock *vs;
- struct socket *sock;
+ struct socket *sock = NULL;
struct sock *sk;
int rc = 0;
unsigned int h;

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/