Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1800647rwr; Fri, 5 May 2023 22:21:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5fBu+GlNxvP4pEighAgugH+BqIqINEDY1nSaf9W5kfi11LnsDAzNMi9IKBPHRsC1aH6Eq9 X-Received: by 2002:a05:6a21:3383:b0:f0:86ce:d02c with SMTP id yy3-20020a056a21338300b000f086ced02cmr5627660pzb.16.1683350506809; Fri, 05 May 2023 22:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683350506; cv=none; d=google.com; s=arc-20160816; b=lypBPLWMGWRQOLNCR/obSxhE5R8xD0rg9c7Iajvrk6Jo+O0k6WEmKZ4HqUEorcy4+a jWOkRyl+tz8X0ceXtihFgBuYpNPwrcyL0nPtKqwkrhNgFAN1mBVTKLICIogikY2DGvR0 BoCdZ0cAgFxTSqGJgCAKV7ng/vwm988l3tz130fW1vpgZd0dyjfScotV+RZVPAsjjKZg 0PgXZZKTMHvi94mmACsYROgQFgegjTBO0Ucv9QDnkAlU8WtM8qTqFtAT6Vxa1u5YYS27 VSFVbOe4tioWg/AdIXa09PKLNuXuPERWyaf/sIcLB21OgWAnXbdRNj2eBoe0e8Pc4cHo eLcA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l19-20020a639853000000b00502d6decabesi3331119pgo.218.2023.05.05.22.21.25; Fri, 05 May 2023 22:21:46 -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 S229906AbjEFDsI (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:=20rt:=20remove=20unnecessary=20=E2=80=98?= =?UTF-8?q?0=E2=80=99=20values=20from=20err?= 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 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 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 -- 2.18.2