Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 478db1f1 authored by Enrico Weigelt's avatar Enrico Weigelt Committed by David S. Miller
Browse files

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: default avatarEnrico Weigelt <info@metux.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 26f8113c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2222,7 +2222,7 @@ static struct rtable *vxlan_get_route(struct vxlan_dev *vxlan, struct net_device
	fl4.fl4_sport = sport;
	fl4.fl4_sport = sport;


	rt = ip_route_output_key(vxlan->net, &fl4);
	rt = ip_route_output_key(vxlan->net, &fl4);
	if (likely(!IS_ERR(rt))) {
	if (!IS_ERR(rt)) {
		if (rt->dst.dev == dev) {
		if (rt->dst.dev == dev) {
			netdev_dbg(dev, "circular route to %pI4\n", &daddr);
			netdev_dbg(dev, "circular route to %pI4\n", &daddr);
			ip_rt_put(rt);
			ip_rt_put(rt);