aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/vxlan.c
diff options
context:
space:
mode:
authorEnrico Weigelt <info@metux.net>2019-06-05 23:19:13 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-05 16:57:23 -0700
commit478db1f1fce3aaed226173ddd1adadd7744018c6 (patch)
treedfe21d1b98869429b7613b357099cedfb8900a8d /drivers/net/vxlan.c
parentnet: ipv6: drop unneeded likely() call around IS_ERR() (diff)
downloadlinux-dev-478db1f1fce3aaed226173ddd1adadd7744018c6.tar.xz
linux-dev-478db1f1fce3aaed226173ddd1adadd7744018c6.zip
drivers: net: vxlan: drop unneeded likely() call around IS_ERR()
IS_ERR() already calls unlikely(), so this extra likely() call around the !IS_ERR() is not needed. Signed-off-by: Enrico Weigelt <info@metux.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r--drivers/net/vxlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 5994d5415a03..f31d226b5f2a 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -2222,7 +2222,7 @@ static struct rtable *vxlan_get_route(struct vxlan_dev *vxlan, struct net_device
fl4.fl4_sport = sport;
rt = ip_route_output_key(vxlan->net, &fl4);
- if (likely(!IS_ERR(rt))) {
+ if (!IS_ERR(rt)) {
if (rt->dst.dev == dev) {
netdev_dbg(dev, "circular route to %pI4\n", &daddr);
ip_rt_put(rt);