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

Commit 26f8113c authored by Enrico Weigelt's avatar Enrico Weigelt Committed by David S. Miller
Browse files

net: ipv6: 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: default avatarEnrico Weigelt <info@metux.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 88e235b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ struct sock *inet6_lookup_listener(struct net *net,
				     saddr, sport, &in6addr_any, hnum,
				     dif, sdif);
done:
	if (unlikely(IS_ERR(result)))
	if (IS_ERR(result))
		return NULL;
	return result;
}
+1 −1
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ struct sock *__udp6_lib_lookup(struct net *net,
					  exact_dif, hslot2,
					  skb);
	}
	if (unlikely(IS_ERR(result)))
	if (IS_ERR(result))
		return NULL;
	return result;
}