geneve: Initialize addr6 with memset
authorNathan Chancellor <natechancellor@gmail.com>
Sat, 17 Nov 2018 01:36:27 +0000 (18:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 06:03:06 +0000 (22:03 -0800)
commit8a962c4aa1e6c0836985a5843f44d74fe3cced12
treeeb2e663c084aff310dbdd76d31594da544049af5
parent52c951f1049223f98888b136fae13c1feb49365f
geneve: Initialize addr6 with memset

Clang warns:

drivers/net/geneve.c:428:29: error: suggest braces around initialization
of subobject [-Werror,-Wmissing-braces]
                struct in6_addr addr6 = { 0 };
                                          ^
                                          {}

Rather than trying to appease the various compilers that support the
kernel, use memset, which is unambiguous.

Fixes: a07966447f39 ("geneve: ICMP error lookup handler")
Suggested-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c