From patchwork Tue Apr 25 20:29:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 86837 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2509740vqo; Sun, 23 Apr 2023 22:04:26 -0700 (PDT) X-Google-Smtp-Source: AKy350bJlZjINNq70Kzk5H+vET+F6rkWnG9SRJLVJAApRoLEuGmNCLyoaIaVpxh1KAARzHsAHthJ X-Received: by 2002:a05:6a20:9151:b0:f3:8fc6:6579 with SMTP id x17-20020a056a20915100b000f38fc66579mr4645567pzc.10.1682312665752; Sun, 23 Apr 2023 22:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682312665; cv=none; d=google.com; s=arc-20160816; b=x6HnEpiExC3TMRIUQGRBexohO1V4Zpf3JGdfzp7KljjwcmeKSmxEpwdqB6j/T5HJHD baMXVzhUlJOy5eRVlh+H4Vhnqt+iZ4k5U9VrCk3mo7ep9y0abM700cesxvWl8OW8avfY X2oZPurFB+FVupMbpWWADPYBap26/pORhaHoTBTJE4o/HOxPpmtUvT/3uknmCKkinfUF TePK1snWqEokNfdTb1MRoKZzGnm8Zg8zPGSHEJNQ4hJRfRzbytW2FLJQ0K1or91gg08d Eh/92U0xIsToBgbTuISVBqKypxt12G3MKE/IVjvgDhi4qldsYvN4lBdn1Vbx4QV8SHOI 9ORQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020a63e750000000b00520ab0e0a56si10087286pgk.722.2023.04.23.22.04.10; Sun, 23 Apr 2023 22:04:25 -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 S229659AbjDXD6u (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=3A_core=3A_remove_unnecessary_=E2=80=980?= =?utf-8?q?=E2=80=99_values_from_ret?= 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764032685957405062?= X-GMAIL-MSGID: =?utf-8?q?1764032685957405062?= 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)