aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorEnrico Weigelt <info@metux.net>2019-06-05 23:09:05 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-05 16:57:23 -0700
commit88e235b80c2ad9117e153f2651857142d2d65db9 (patch)
tree1b5d34e5c6ad597d8124193b585bf46144933d58 /net/ipv4/udp.c
parentnet: openvswitch: drop unneeded likely() call around IS_ERR() (diff)
downloadlinux-dev-88e235b80c2ad9117e153f2651857142d2d65db9.tar.xz
linux-dev-88e235b80c2ad9117e153f2651857142d2d65db9.zip
net: ipv4: drop unneeded likely() call around IS_ERR()
IS_ERR() already calls unlikely(), so this extra unlikely() call around 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 '')
-rw-r--r--net/ipv4/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 8fb250ed53d4..f40059b2a8a0 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -483,7 +483,7 @@ struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr,
htonl(INADDR_ANY), hnum, dif, sdif,
exact_dif, hslot2, skb);
}
- if (unlikely(IS_ERR(result)))
+ if (IS_ERR(result))
return NULL;
return result;
}