mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
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:
parent
f5e5d27248
commit
98c8147648
1 changed files with 11 additions and 10 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue