Skip to contentSkip to conversation

vxlan: remove the unnecessary codes

PATCH Applied [email protected] 2 participants 2 messages Apr 22, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

---
 drivers/net/vxlan.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/net/vxlan.c +1 -5
index 154116a..27a5f95 100644
@@ -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