Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5416641rwr; Tue, 9 May 2023 00:47:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4VGa1ts/w1g8xkB/F7KTL9aVB0aGPWbDbmD6naRfKAqUgijg4LXY56PM36IvtphMH6Z3lk X-Received: by 2002:a05:6a00:2441:b0:643:4d69:efe0 with SMTP id d1-20020a056a00244100b006434d69efe0mr15763104pfj.4.1683618461975; Tue, 09 May 2023 00:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683618461; cv=none; d=google.com; s=arc-20160816; b=Znz9a7wgCDh4fuNRA8cefigyTDHE4dR4edBLP4ZRgJHW1FPT/W3VbeXtXbGrM2FWHK sJ1AfTxrvl1xXQaDxmEwhUuY2dGdT0wTAe0h1RidPmYqioA1xM7zZifJ1hewem7fdZNu W5r0ujMZEKwvHuypNvkeFOZNeL8dWL9lUttSjp3ciHPj6i8ILJ5Sxfe3j+WIqEyKA1VG VcgnZqvjYAD4HpbHhkRJAwYMfY49uC0GAhSkIOQXkBDeGlCFDgQD53nKYGonVqlUcmDW 8V8aytPyUs6EehWI4UxosSah/Nu98vMBQo+cAXFe+fz8q0n+erzsISVrLaWAiPUpAMfT f1PA== 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=sxOAL0tnAw9ukzpglAKRxjlezUqGoILklUG+feztSYg=; b=tcrX/ldcnAl26YOyPVOp3p8K2hk4l26LTkVB02GCur/LZ0uxZlCowLyX0ObPQNH8i/ FC6UrYaZGJqLDTKxrCnGleh9hbdkZXSHXZbrRREY9O8YI9WAuDjq4Eb/TTLMcHkEh9/P BKririhO1S8ihkSt9yprDYTdu/QUphhMSr1r+cnKBpPKHO3okoG2XBSqLPou+xl808Vy FEWDFwEf1bKOxnlSFQfcJXldBi702EViL1/IKqz49dSgQFbwuQNilET27kQRwElVZEPO 2lkZYFuQJeeVFJbV14TnT17/wjVqC+6N0EAG/U1bt4n1ptrlPHJQtP1axWFTMdnXj2KV hPvg== 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 d9-20020a631d09000000b005189417e923si888909pgd.882.2023.05.09.00.47.30; Tue, 09 May 2023 00:47:41 -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 S229612AbjEIHXZ (ORCPT + 99 others); Tue, 9 May 2023 03:23:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjEIHXX (ORCPT ); Tue, 9 May 2023 03:23:23 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id C79A2173C for ; Tue, 9 May 2023 00:23:21 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id EE23A180138A06; Tue, 9 May 2023 15:22:58 +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?NULL=E2=80=99=20values=20from=20push=5Ftask?= Date: Thu, 11 May 2023 07:54:17 +0800 Message-Id: <20230510235417.3061-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 push_task 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 662c565745fd..55e480d5174a 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -2073,7 +2073,7 @@ static int push_rt_task(struct rq *rq, bool pull) } if (is_migration_disabled(next_task)) { - struct task_struct *push_task = NULL; + struct task_struct *push_task; int cpu; if (!pull || rq->push_busy) -- 2.18.2