vxlan: remove the unnecessary codes
Subsystems (2)
PATCH 1/1 vxlan: remove the unnecessary codes
From: Li RongQing <[email protected]>
The return value of vxlan_fdb_replace always is greater than or equal to 0
Signed-off-by Li RongQing <[email protected]>
--- drivers/net/vxlan.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/net/vxlan.c +1 -5
@@ -730,12 +730,8 @@ static int vxlan_fdb_create(struct vxlan_dev *vxlan,/* Only change unicasts */ if (!(is_multicast_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); - -if (rc <0 ) -return rc; - notify |= rc; }else return -EOPNOTSUPP ; }
Signature · 1 line
2.1.0
From: [email protected]
Date: Wed, 22 Apr 2015 15:49:10 +0800
Quoted 5 lines
From: Li RongQing <[email protected]>
The return value of
vxlan_fdb_replacealways is greater than or equal to 0Signed-off-by Li RongQing <[email protected]>
Applied.