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

Commit c4829dc5 authored by kernel test robot's avatar kernel test robot Committed by Greg Kroah-Hartman
Browse files

sit: use min



commit 284fda1eff8a8b27d2cafd7dc8fb423d13720f21 upstream.

Opportunity for min()

Generated by: scripts/coccinelle/misc/minmax.cocci

CC: Denis Efremov <efremov@linux.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarkernel test robot <lkp@intel.com>
Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dd0d4f8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -316,7 +316,7 @@ static int ipip6_tunnel_get_prl(struct ip_tunnel *t,

	rcu_read_lock();

	ca = t->prl_count < cmax ? t->prl_count : cmax;
	ca = min(t->prl_count, cmax);

	if (!kp) {
		/* We don't try hard to allocate much memory for