Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1250855imw; Tue, 5 Jul 2022 06:26:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t/HW+zP6hgDWzpTk8fGFxFQP4YSNSAb8Iabsxzsbm5L4SQzDiegTWUZqATqmcm7KRWxobd X-Received: by 2002:a17:902:f78c:b0:169:b76f:2685 with SMTP id q12-20020a170902f78c00b00169b76f2685mr40905837pln.41.1657027600257; Tue, 05 Jul 2022 06:26:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657027600; cv=none; d=google.com; s=arc-20160816; b=er7PllgNdCLV8BG5zNUEAoml/VwF35By5fYMDT5iUudHuD9v5g69D6HgafKQYWdYAD vpyYZws1j5hAdkwGZzpQWFzFHsbG8iHRFhveTc+mSeuNp6xFMD7OpEzlR+Xah3fHIJAY BYdRY6CIVARspoVjoLpV5iB+eCKsqJhOh40HG5702nqGIk7gQh35JJXhK9pTKmKnwgwI rtBZqOwqIXNOpwDM4Tt3M/HY7PNWyDczAwgJ5iox09XEiDBtQjT+Dd7u6WRrvWFORgI2 LDNHPLwKNo3x+8BUmgfIGRsX24FCOUFgyPyThBVC5f6L840PyEowsZ0gZLeSApyB2ZKG ukmA== 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=Qf2Zx5j2JFSxIJYvBdx6PYFXz1UzMA/ry0QbHCPbVjk=; b=jjWd2567NAGrMwKz23M7jJTL//cuM74i6tUfsTupmkJeuG4TaylmLSDlHGOKEOUnuh csTTn47xLVKo9d4QmiLawxWoft4vnSawne5jLHp2in+bLvDc9fZIq1npccqp3mL31nLD KW3XfvhmYbbQAgIlBUh/lYdIHWdUA8QiwSScz4ktkjXMCFJEi32MRCJyeiCWOOO6biyF qk/4iumdOVXfssMPCLQkaheUMhr7XqigOtdFowsM1DuEj2LrYm4SxtcnNm2+mZXy7TG6 KgndyePRmzuuqxwEri8zU5lSmwPS9VUdF8EWxApKO/J6v0oO79do+dUUpmkOhCCNppMz 9gRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Non42iWg; 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 b11-20020a1709027e0b00b0016bdd5f7092si10307316plm.414.2022.07.05.06.26.28; Tue, 05 Jul 2022 06:26:40 -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=Non42iWg; 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 S233602AbiGEMFn (ORCPT + 99 others); Tue, 5 Jul 2022 08:05:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233500AbiGEMDR (ORCPT ); Tue, 5 Jul 2022 08:03:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1AAE1836E; Tue, 5 Jul 2022 05:03:16 -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 7AEBB6173E; Tue, 5 Jul 2022 12:03:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86F61C341C7; Tue, 5 Jul 2022 12:03:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657022595; bh=yxJyxylm8NSslhMoHVlnteRXm5RZnJPkOyfaJR7lRqc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Non42iWgumfMkIHs5E5LlSjAZj0QnbZYfNEAMyiChbwoQ69v1fT2v8IrFumlRiRuJ G+6b4VPOZi0kPPeDFRl6/CBfT3u0Guly3bHKiIlQW2j6rVebq9xTUWldterqXznfMN JQJf2Mn/bde4vnMuX0Lz8QVd4xWv8EL2KbGYpkOA= 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.19 25/33] sit: use min Date: Tue, 5 Jul 2022 13:58:17 +0200 Message-Id: <20220705115607.449889897@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705115606.709817198@linuxfoundation.org> References: <20220705115606.709817198@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 @@ -316,7 +316,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