From nobody Thu Feb 12 07:40:30 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A755C77B61 for ; Mon, 24 Apr 2023 03:58:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229797AbjDXD6u (ORCPT ); Sun, 23 Apr 2023 23:58:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjDXD6s (ORCPT ); Sun, 23 Apr 2023 23:58:48 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 738F026A3 for ; Sun, 23 Apr 2023 20:58:47 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id EF54418011E984; Mon, 24 Apr 2023 11:58:30 +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: Wed, 26 Apr 2023 04:29:41 +0800 Message-Id: <20230425202941.3126-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 6c2b6b797d93..3249c1272e57 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -10687,7 +10687,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 quo= ta, u64 burst) { - int i, ret =3D 0, runtime_enabled, runtime_was_enabled; + int i, ret, runtime_enabled, runtime_was_enabled; struct cfs_bandwidth *cfs_b =3D &tg->cfs_bandwidth; =20 if (tg =3D=3D &root_task_group) --=20 2.18.2