Commit 98c81476 authored by Niu Xilei's avatar Niu Xilei Committed by David S. Miller
Browse files

vxlan: Fix alignment and code style of vxlan.c



Fixed Coding function and style issues

Signed-off-by: default avatarNiu Xilei <niu_xilei@163.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f5e5d272
Loading
Loading
Loading
Loading
+11 −10
Original line number Diff line number Diff line
@@ -1060,6 +1060,7 @@ static int vxlan_fdb_parse(struct nlattr *tb[], struct vxlan_dev *vxlan,
			return err;
	} else {
		union vxlan_addr *remote = &vxlan->default_dst.remote_ip;

		if (remote->sa.sa_family == AF_INET) {
			ip->sin.sin_addr.s_addr = htonl(INADDR_ANY);
			ip->sa.sa_family = AF_INET;