Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1230469imw; Tue, 5 Jul 2022 06:08:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uNf7HciccDkVXljkTlQx4hMwQpDiIgqkjprcCPMel1tv7uROx1fjl3stAiWyuoPqzysgv5 X-Received: by 2002:a17:90b:4b48:b0:1ec:fc87:691c with SMTP id mi8-20020a17090b4b4800b001ecfc87691cmr43431879pjb.120.1657026498753; Tue, 05 Jul 2022 06:08:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657026498; cv=none; d=google.com; s=arc-20160816; b=aIl/og704sNHh4IJ2lSlU1QxKhmbjdhjXzYys/VFbbUNH52lrnk6HrRzNh1u9Mgd9r y43im9RG5zsMbYrjbc8ti8hz/aUvsHX/+RxDk9hnUTo/5RLcW5YKiadqh06iRfv8GZvv VIPkS4cW94YI8EjUOOU1ibwosYcoMKMfpdON+LNQR16pUZRULi03ewSNCjssLhe/MFJB 13xl6vygocSQfJpP7R93Alq4/pjc9WAd+QdbmSMUAIAU7cEy5tp4Lj/YTvN5P27+c5Xn rm2FoMuA9hOzI/J3bqXhdnSpoAdqhVRuhrNQYesCFQNV9PY/UU38VR28zJ8YL5mU9H0o 18Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tJbz+6jGQaDuqKA+kc+z/UWPlD+BvGGJuRhixOC67nA=; b=mphwd/o7vJac4eBNAALqCObPraPcguqB1qFp2V6/PiuaL/X9Jaqduc2/qwyQ4QSsZx UUZYQ5Fh3dDsYVNFmmJJtuddh20wGkmQDHVffPxqZ/cB04r2apL9hjoQSftqNqRKrYpd 5IfIaLDlYjEiMS5oimoE1QSHodt7emQA7X/eLbLdyZhZzjVHBIdQ4ucGTal6tuoQs752 HjDplit6eFeANRMhOJTJhgFAnd7qlCi4AERs6FAUHDp/nuwxbjfsEGh/d3vtkVVURpIQ bt437PjP/7Yenen9pC0IVvXs+Hnlmqq9goLPwbQ8nSI1vPTEnXuFxpqDPEdC1OzCd7ce sgFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SUxsAtpL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z20-20020aa79494000000b0050e082dea07si13497009pfk.189.2022.07.05.06.08.06; Tue, 05 Jul 2022 06:08:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SUxsAtpL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232675AbiGEL76 (ORCPT + 99 others); Tue, 5 Jul 2022 07:59:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232622AbiGEL7p (ORCPT ); Tue, 5 Jul 2022 07:59:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 537361091; Tue, 5 Jul 2022 04:59:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E4B54617B2; Tue, 5 Jul 2022 11:59:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3416C341C7; Tue, 5 Jul 2022 11:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657022384; bh=xy/zpNF28Nl4sccHc2YYbTctrPGisl++k7Cccms5UtU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SUxsAtpLkn7QhPCdgOCKnklzGEwnB6yBCnsIGEWKgmL8WoYJYRfZ6sHuRzInfce8c oj3nSsNO3GR1HW5pvGx8sOVgh9Aw3ar2xUw0ZSyeLnfbSAcoA7+rjeVgBXmPAPNRzA UeoqG2Yny6kBka4VBXvQLThTrCSh3CM6dK1NctJ0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Denis Efremov , kernel test robot , David Ahern , "David S. Miller" Subject: [PATCH 4.9 17/29] sit: use min Date: Tue, 5 Jul 2022 13:57:58 +0200 Message-Id: <20220705115606.256584701@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705115605.742248854@linuxfoundation.org> References: <20220705115605.742248854@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kernel test robot commit 284fda1eff8a8b27d2cafd7dc8fb423d13720f21 upstream. Opportunity for min() Generated by: scripts/coccinelle/misc/minmax.cocci CC: Denis Efremov Reported-by: kernel test robot Signed-off-by: kernel test robot Reviewed-by: David Ahern Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv6/sit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @@ -310,7 +310,7 @@ static int ipip6_tunnel_get_prl(struct i 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