Commit 60840429 authored by Li RongQing's avatar Li RongQing Committed by David S. Miller

vxlan: remove the unnecessary codes

The return value of vxlan_fdb_replace always is greater than or equal to 0
Signed-off-by: default avatarLi RongQing <roy.qing.li@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 21d3515c
...@@ -730,12 +730,8 @@ static int vxlan_fdb_create(struct vxlan_dev *vxlan, ...@@ -730,12 +730,8 @@ static int vxlan_fdb_create(struct vxlan_dev *vxlan,
/* Only change unicasts */ /* Only change unicasts */
if (!(is_multicast_ether_addr(f->eth_addr) || if (!(is_multicast_ether_addr(f->eth_addr) ||
is_zero_ether_addr(f->eth_addr))) { is_zero_ether_addr(f->eth_addr))) {
int rc = vxlan_fdb_replace(f, ip, port, vni, notify |= vxlan_fdb_replace(f, ip, port, vni,
ifindex); ifindex);
if (rc < 0)
return rc;
notify |= rc;
} else } else
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment