Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2587518lqb; Tue, 28 May 2024 04:55:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCp0DsaYX9l/rEhR7bO1JnnkCj1SCrwBFgP5uAhMgVtCZFLPl226Vuxl1kytHEykZoWwh18I0HhQgQss2upY0fXhUVF3GohF/QF6hwgw== X-Google-Smtp-Source: AGHT+IHBcr7tTfYxW7GhrNhnwz/qgfoYRXKeI326/ynGcF2MjMJBcNDj8Vp8fX7rA6MlM4z1ynqx X-Received: by 2002:a05:6a21:339e:b0:1a9:509c:eba6 with SMTP id adf61e73a8af0-1b212e135c3mr17608339637.25.1716897319688; Tue, 28 May 2024 04:55:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716897319; cv=pass; d=google.com; s=arc-20160816; b=HZm1VVHTcKr8op2DpgmhwCIG8EqmwIFDTLWTrGSteVsG+R0NQb7EbtmMAoJrXcvicu OcTawR2Q8rKd5ujuqqkUV57p3ovp1MmF9k476IRyiG+fs9Tc5k8Z5oDYU2t7Huqlxhlb J/1JKkft47WBIHb9Za1FdsbUPqgQY20wUesxW6T5lupAZgIjjrN7z2n4wZ4qoReqtlN3 r3J6amYZVcwzcDOkGo6Bnw/0BiW2gZfIhj0ZR1QRFJyo9FLqX4zao3O/nfDu0efumtSa PKWIGt8mPmrenbHb2szYonvJYsuZos4uat47M9/3jXchZ9jnMvPJYvTtAgxs9iDBQAFM ouSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from; bh=g6NCq84fiSdM45CLU7pRC5/3Q3ffF/0yfcj2q4YomDw=; fh=thqVJ9tlYA2lOMLrt58Vn14YmV8tgqIPIEPNF4LEV0k=; b=jDll3mC4WmV8JviT+1uJemaLfqrgvD5BMt86ZfqfDFwScWgvXLotj6szFJhnPM7S1W 9xeJ56nx+ODQkC/L9cJYny+6Zf+4sHbOIPuxj1z4/JtYn/iY2bqHwBMGZ+76EhIakndU Xkv9rFq6nHK5Y31WbH6aaW//t5QXkyTmWiRmBRYHgU4Y7qYt3rBHPky2VS30uJu2trZg 8uLKJ5zpIcb7QxrOKeEM6VCIBjk7sSFEWsoXVerKS8e+43FCnSXdlmMYkINrZCq/HfoE Fn+oERKBn1FvhQOGDhdcJC72GoLqVp7TjxEII+Kx2Dghno5qE93PwJRfeP6Y7NJUoIkf pPYg==; 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-192231-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192231-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fcfd806esi777912b3a.213.2024.05.28.04.55.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 04:55:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192231-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-192231-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192231-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5A3C228150C for ; Tue, 28 May 2024 11:55:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38FDF16C875; Tue, 28 May 2024 11:54:57 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 88EDB4C97 for ; Tue, 28 May 2024 11:54:51 +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=1716897296; cv=none; b=RS3Ypr4b8TZj2CP96HolLDc7kw14+AKQPZQBfwZA9OUJIqXyTjvte7otPoFAyjq95HRasSRJiH3RR0joyED1YniZEAZB6y8AkjaL73wAxnzu7sbuvH19HiZFP98v5mn2HKjNfgXeRYpbFeAJF8Skv6BqKumG7XbmzQ7sdRAbEA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897296; c=relaxed/simple; bh=LAMUPsKyPx2PdNYmlXTdAZ78b607CXWP43w8PfKewtI=; h=From:To:Cc:Subject:Date:Message-Id; b=sokWy+g/rCsFX2zMa0AqoPjwySn0L1Uam3FkfTWNU090lAoMuggS/ZvGhQhPTOe3Fcbfve7h+AE6BDZ59s6b3lVjGta3pQHPty+BlLuQ4qJzJajx/7n3mJ1lE8jZpddCS95qPN4AdKJpVepPh7E0JSe43hy0qnMXH9DhCeKvQ3s= 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 73DD8604FEB94; Tue, 28 May 2024 19:54:42 +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] sched: core: quota and parent_quota can be uninitialized and assigned values Date: Tue, 28 May 2024 19:53:50 +0800 Message-Id: <20240528115350.1927-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: quota and parent_quota are first assigned values, so their use is not affected. 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 140e6373fce2..faa5dcffd2b7 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -11039,7 +11039,7 @@ static int tg_cfs_schedulable_down(struct task_group *tg, void *data) { struct cfs_schedulable_data *d = data; struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth; - s64 quota = 0, parent_quota = -1; + s64 quota, parent_quota; if (!tg->parent) { quota = RUNTIME_INF; -- 2.18.2