Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5101148rwr; Sun, 23 Apr 2023 21:28:32 -0700 (PDT) X-Google-Smtp-Source: AKy350ZjVP0f8vC8yIRsoy8nNn6edeSmsRvnpLrR5OO9998/b9DMao1qZbmuCJS9PPim30wvqNMK X-Received: by 2002:a05:6a00:2450:b0:634:c34f:e214 with SMTP id d16-20020a056a00245000b00634c34fe214mr18561849pfj.10.1682310512096; Sun, 23 Apr 2023 21:28:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682310512; cv=none; d=google.com; s=arc-20160816; b=in9o1DoLxFVhXkKdsOYIJjmVA/8syj8RfAlKVvEPFvhZbA6TOm/BeJSWeKsNOH9QjY z4uDvjshb3X8QhtC7WsJ1iUa5HW8oNH8Vihxd2/Encz/1AMdW+J/GuhUv0wyZQWJYvBN IsbaWY8wyYbgnlnMOpWfjdn4Ux3UMWnkR55GwZOk1bOiX2pQKBfP5e5krbyiHk4lYLMw 7yEIiYGlHbQCUmXMh4AzvdvQU3OQLKIHWyRWdr3aG8lN8/l7vQNga3FryDTnCyp1nZYY Akj5fnxr7PyUrLudQZUHItLOxFW1RFMaCoVn3CheNFftBh9sxtB6a6A7F8zxE47ZTAH1 SHOA== 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 :message-id:date:subject:cc:to:from; bh=n47yUsv+GnMfMOK0zak1ajmgdzz05U3KtijVMs0xW1Y=; b=NDQOmWZ2Yv18vKRVmo1D3Sh/ot+7O4XdRJ+yhALgOOhAqBavKxvu2qyJ17c/xzfvDV 049gF7ouWa9U5AabuR7GsJBPZv+vxt3dK2kfVYDa5DgVypIMHkncnHATh1MLot0wK8fC 4WTYIi32aA2QnPRxOZuwUjq135xA+2soApkiAW1mnkDWDqPM/qXy6TUSmwr3T7U4tzC/ +lT1F3wJggiek01E/PhA4SJfq3ub6obqlqykpgWcPMrKATS6PX+AYILzWT1UpfytbG6D QeNAWmT5DNf5+s/7/xwQHtIwE8A83+g25AkxsoEsRPjBfQZywcIelmrLv9m83kN/our7 f3tA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 125-20020a620583000000b00627f017391csi10061691pff.273.2023.04.23.21.28.17; Sun, 23 Apr 2023 21:28:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229625AbjDXD6u (ORCPT + 99 others); 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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_24_48, RDNS_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 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 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