vxlan: Fix alignment and code style of vxlan.c

Fixed Coding function and style issues

Signed-off-by: Niu Xilei <niu_xilei@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Niu Xilei 2019-12-30 17:52:22 +08:00 committed by David S. Miller
parent f5e5d27248
commit 98c8147648

View file

@ -1060,6 +1060,7 @@ static int vxlan_fdb_parse(struct nlattr *tb[], struct vxlan_dev *vxlan,
return err; return err;
} else { } else {
union vxlan_addr *remote = &vxlan->default_dst.remote_ip; union vxlan_addr *remote = &vxlan->default_dst.remote_ip;
if (remote->sa.sa_family == AF_INET) { if (remote->sa.sa_family == AF_INET) {
ip->sin.sin_addr.s_addr = htonl(INADDR_ANY); ip->sin.sin_addr.s_addr = htonl(INADDR_ANY);
ip->sa.sa_family = AF_INET; ip->sa.sa_family = AF_INET;