Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2480847lqb; Tue, 28 May 2024 00:39:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUohsbKe4d4bk1H0XXOeUT/4DqyxrrG48YrpCfrV807J8/oF9BSEH03fH8vTyEJbiYDxSFnVdrT3ZSSwhelFgZUmovAOMdF0XV//Ah+uw== X-Google-Smtp-Source: AGHT+IHBWV7KM2CIVk3Jl7k84sZu4Wnmt3kl0Q1xzBRwobZ3z1YZ5AZpw8F0BnOCfwKzDqxFPbyD X-Received: by 2002:a17:902:cec9:b0:1f4:b18a:3f11 with SMTP id d9443c01a7336-1f4b18a428bmr38763195ad.63.1716881967591; Tue, 28 May 2024 00:39:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716881967; cv=pass; d=google.com; s=arc-20160816; b=BcRcCyxTdxJqTcGMftRy0bfNamZWfjDGD5qBGW7WfTWLonERPPDFLClIqtSV/rBgAv fbDoHhTuPovz+FD+lUUwm40U/TCD+XXDF/qLdKnMPjfpvLTycQJmug6u7WxUH3/W7v3X MTcDgm/IZTy1hc2rldgCGhoXsLmGHGdWUCv62ebiInPLipjykCffG3i4UlSBouK5HWHv IJgVI5gsCBwJm8KvtO2OMxouZLg38A/3C9cJ8hPFMsgmjLDF3LNlJpBh/3mP1Sv8WCp+ xyzM2rxGwJDbxVNDj3HaVWc98dloxjauxKGK+vFkv+zbNCGTPrv1t7YEaam/1q1U747o B26w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=53zL5bH0Tq2rQrAKZDLA39puM8RYuep0zs9a0o3254Y=; fh=thqVJ9tlYA2lOMLrt58Vn14YmV8tgqIPIEPNF4LEV0k=; b=ePt3rycsxpFvvLNG1EcikfUJ8QxMK7yg7VkxrsCNoij331P6ixeZhbp+i9JEwxHFj3 9cnlknIPMMMNCLZICsYce/diHedGxqkKOSjkCE+Z9ITVdKZB6SlImTq5Xbhwx1cxFaEW FITBr7o3dSSlF2ngBsImiYwGUEaf2eJupt2n/hg9Wp+bOw2iLosawBgOh1UK2ULzlRl/ IzPq0gHNkbnY4wEPSC61tdUab4XY/xFRGPmg2ak6wt3L9dXteTePcPsqqwk0RBv9qTpZ +VimiEsFEgtMpnT/j6u5gOh/9VGCUI2ALrwzrjurx3E1O0zxMQpSWBiJrVXZIEpgKebC 3gJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-191874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191874-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f48af2121esi39888225ad.417.2024.05.28.00.39.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 00:39:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-191874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191874-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 82C89B23284 for ; Tue, 28 May 2024 07:37:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58F2773449; Tue, 28 May 2024 07:37:32 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 17D271DA22 for ; Tue, 28 May 2024 07:37:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716881851; cv=none; b=ecuEOyAO5w7/o6CnpqrQnafC++fQPw2Hh1B6u3c+f7Wyh+ZEhqo16i5R4jtEO/RuZDScGey0XldNogidN6qptFQqLVSf0WBSm9XUTH4RFlfNTH4kn1KQC0PpJdcLjAV3OuZGExavYn8PzYsIvQJTUCoFl0XaupYkWVL3FEv/Ojk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716881851; c=relaxed/simple; bh=reydI0Zzb5ykD65028vaNZb7IJixOUn5HdRpqepKeYs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=Ox9jDKHY/NoD0kMzti74C5ADrpWWbFMM3HSHjuesu12MHpUQ/4ttKG2JM4diCt0JTowLFJq4DBEfFqSDxAoD6YXPjhUEdZBeSjIMrG06tcTMnzHu3KG3TeSxCpD3RfPYjKvir/icvhBI1HpH0Pvbot49oPTgvXAUTtPYeHHeEeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 313A06372B503; Tue, 28 May 2024 15:37:24 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?sched:=20core:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=980=E2=80=99=20values=20from=20ret?= Date: Tue, 28 May 2024 15:36:46 +0800 Message-Id: <20240528073647.71929-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ret is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 346159a24705..140e6373fce2 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -10808,7 +10808,7 @@ static int __cfs_schedulable(struct task_group *tg, u64 period, u64 runtime); static int tg_set_cfs_bandwidth(struct task_group *tg, u64 period, u64 quota, u64 burst) { - int i, ret = 0, runtime_enabled, runtime_was_enabled; + int i, ret, runtime_enabled, runtime_was_enabled; struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth; if (tg == &root_task_group) -- 2.18.2