Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2095598pxf; Sat, 27 Mar 2021 02:31:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/tEXpjRD0EGzLE6LebYc3aHBPuboux8+yLptqkGdUjD/BReRL3JdHs7QdYY3xqBTTaPz7 X-Received: by 2002:aa7:cd6a:: with SMTP id ca10mr19488368edb.7.1616837475251; Sat, 27 Mar 2021 02:31:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616837475; cv=none; d=google.com; s=arc-20160816; b=HbdM3s5Jx+LXkRIod/PsId7AbRsLv/wCoAF0ELpw15MRLVUAZd7Gmh9mAur/5yCNiB KI30mP6QVqQT7F2hPI8XzTEON/5oo3fIrKAkHrOiI3WDfhClYr+gGo9tM1se+jE3DUmr A4/3ehGTz3MIBNxSG+DM7duO8IeLR13m75BCkHI/cAOLrKvN0Y5zcsOYHNeBda6ii8Fa +jmOtAHnO3GeFCQY3M9D7C/UutN3E2x3uRlZ5J0d0uFtEqhm7d+im5Zvnm5DJoS0Wy6X WrKV7pFZY59gOoXYO9+CAOpICHIEeQd/b2s286CyKqp28iGAY2rjWeDBTKhL5C9Oqe5/ TSfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:subject:cc:to :from:date:ironport-hdrordr; bh=CC3Gvtuqdw7EgYtcP66brvh4Qoa2rO8cFW9c3QXodCE=; b=an54KzMHOZ+F082ybKp48r0KGLoO66Fi+M32+0idb4QLaeRNF4O+LIIoMUmf1wZIJj W0bNuHkV4N9ghmiwl9qUbnXr3EkS3l4y/o4fd9XxGSRXFsVwaDAT3Km/FBKMKE74Qwzs LmarFgQCGH4fRifAtzXaooHTN8riN96ucUKGk7uOaG9OOxOZS/R3/JVimQl01DUOH/YS AcUgjtX3saMmz/+HQwxbm7l6ndxyeqMkd/xrGJK/sDi2zyHahTLtRRVx7v4n7GBOW+sA zZHmDQUAdXmEEv6UChRu/GQLY7QXBjBF9TlA1Cl7Pfb2KRHFOQ0tFHtlA+q4Fdo2ej6l y7eQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si8542996edc.296.2021.03.27.02.30.51; Sat, 27 Mar 2021 02:31:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231192AbhC0J3z (ORCPT + 99 others); Sat, 27 Mar 2021 05:29:55 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:51085 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230329AbhC0J3f (ORCPT ); Sat, 27 Mar 2021 05:29:35 -0400 IronPort-HdrOrdr: =?us-ascii?q?A9a23=3Av8i5YaMpIEj9fcBcTgGjsMiAIKoaSvp033AA?= =?us-ascii?q?0UdtRRtJNvGJjszGpoV46TbYgCscMUtKpfmuI6+FKEm3ybdQwa08eYivRxPnvm?= =?us-ascii?q?zAFvAA0aLHzyf7EyPzss5xvJ0AT4FEBNf9DUd3gK/BiWGFOuw9y9qK+r3Av4nj?= =?us-ascii?q?5kpqJDsHV4hd9QtjTi6UHkpqLTMnObMJUKvZ3MZBqja6EE57Uu2wDBA+MNT+mw?= =?us-ascii?q?=3D=3D?= X-IronPort-AV: E=Sophos;i="5.81,283,1610406000"; d="scan'208";a="377023408" Received: from 173.121.68.85.rev.sfr.net (HELO hadrien) ([85.68.121.173]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Mar 2021 10:29:32 +0100 Date: Sat, 27 Mar 2021 10:29:32 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Denis Efremov , kbuild-all@lists.01.org Subject: [PATCH] sit: use min Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kernel test robot Opportunity for min() Generated by: scripts/coccinelle/misc/minmax.cocci CC: Denis Efremov Reported-by: kernel test robot Signed-off-by: kernel test robot --- sit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @@ -325,7 +325,7 @@ static int ipip6_tunnel_get_prl(struct n 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