From patchwork Sun May 7 20:19:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 90673 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp842911vqo; Fri, 5 May 2023 21:06:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4MvBCyUlueLHSayzEGAshNnAGwNW6LN5tA7Nwf0zChfx2P5GwZNghISAdzV9tz2QXXl1Oy X-Received: by 2002:a17:903:1209:b0:1a9:7912:850e with SMTP id l9-20020a170903120900b001a97912850emr4825060plh.10.1683345984961; Fri, 05 May 2023 21:06:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683345984; cv=none; d=google.com; s=arc-20160816; b=e0Tp9b5TXKM2hbs2Xxc2OSUbcG52ztmuGTzcHhqtsxSyIlrVEUrSg4stbdbkvLDlph kuZjGVYjjdSw+qREJTwGgc4jS7zKVaLPOzoClg7qX2OB1Ehr1WKD2Mm0OQ7Rwz6MZJ6Z mNms98sFEhVa0TovNW4YsYBrg7WgkIROHGIN3qBp2E4CrID/co+HO3uM6pLwiJz9uIqy bqMt4+HOVQXD/dkcs6q3m7iV6WRFaFI6tR3k7cDebv4qxutFC7xChR4sdrqIA2WhH1oc VPFmgmmR+crQcWaBLYmnZKUMSO3U7BnKx+yzMZJejVah4LHqpI7F1csdc3Azp80CvPR8 dKpw== 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=lZ0RcEl3Zvs9ABUQM8JOljJsPTFsXp2tTwNHJSeWNkk=; b=XRR6ij6tHqsfbOynedMuVRYvI27a6+ZLvpse6ep9xvrmDLjrU42KsOoNGpe51sRs9J 688QcjEF7P7IBq+Ee7eXaKISid2tXEOrWxGhmgwIf/HDrjcL6OntJ3S12puXj2aPXnFr phC6k7ePNlfH3/njE16wPxXxQhgOF6IOiD4pFWL7QbDIOHXGHXopmkRBmGQaC9bLTgpQ AjsTkNbqXdtQaW5Ter7+a2LQY8wYAE+Zd/fsNpbnFBeB6+v29rNIVbUqYklWsKvUiZws lYVRFWdztWz3T6ebqWuGRVWc3bbka/BCPBUCC2l36D0rRTA/3II/Orbm9KPkrD66er7J ORsQ== 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 l11-20020a170902d34b00b001ab08e28e01si2914561plk.361.2023.05.05.21.06.05; Fri, 05 May 2023 21:06:24 -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 S230225AbjEFDsI (ORCPT + 99 others); Fri, 5 May 2023 23:48:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbjEFDsG (ORCPT ); Fri, 5 May 2023 23:48:06 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id D371E658C for ; Fri, 5 May 2023 20:48:04 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 203F71801051A9; Sat, 6 May 2023 11:47:55 +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_rt=3A_remove_unnecessary_=E2=80=980?= =?utf-8?q?=E2=80=99_values_from_err?= Date: Mon, 8 May 2023 04:19:13 +0800 Message-Id: <20230507201913.2779-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?1765116199377532702?= X-GMAIL-MSGID: =?utf-8?q?1765116199377532702?= err is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- kernel/sched/rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 0c35e60f06dc..662c565745fd 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -2841,7 +2841,7 @@ static int __rt_schedulable(struct task_group *tg, u64 period, u64 runtime) static int tg_set_rt_bandwidth(struct task_group *tg, u64 rt_period, u64 rt_runtime) { - int i, err = 0; + int i, err; /* * Disallowing the root group RT runtime is BAD, it would disallow the