projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21d3515
)
vxlan: remove the unnecessary codes
author
Li RongQing
<roy.qing.li@gmail.com>
Wed, 22 Apr 2015 07:49:10 +0000
(15:49 +0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 22 Apr 2015 22:45:49 +0000
(18:45 -0400)
The return value of vxlan_fdb_replace always is greater than or equal to 0
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/vxlan.c
b/drivers/net/vxlan.c
index 154116aafd0d8c5cb6caab9056a2245cbc3c783b..27a5f954f8e999cc809dc5ed0bad08d2e06e0f18 100644
(file)
--- a/
drivers/net/vxlan.c
+++ b/
drivers/net/vxlan.c
@@
-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;
}