From patchwork Wed May 10 23:54:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 91406 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2694578vqo; Tue, 9 May 2023 00:49:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7VtKddlOhXxqlTS7ImTwW8ltDiwU2hbhOIHnDYqVASMcC59QTNvEDN76vgy6lw7fTsiIfZ X-Received: by 2002:a05:6a00:8cf:b0:640:e12a:3a20 with SMTP id s15-20020a056a0008cf00b00640e12a3a20mr16928802pfu.1.1683618581623; Tue, 09 May 2023 00:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683618581; cv=none; d=google.com; s=arc-20160816; b=BV6NVKyBRPX2mfF4zlXVzOsYCKNB4jdw0iKoFO3ozdGTGfmaFQCmwLUiOW5lkAXAkl afMJzzgwdsiUdygQjtnr6b7X89ABBfjnqTYLffJ/2YcF/zZvHesf0V9emFY7/qD5UzEe 3c5WwYdcI+Wi5mLJothlGWhgy9pk4Ic1ODk/h5/CdGI9bBBWG1vF0iEiFg1zBKPZq6fA 7ooWpkHcS37xslym5ZxjISxJbV87r6mcIIzNoDnD4WO/1ou5PzcQHSGmH3QWU+cb2irQ 73lGFq6d+tUEku1UC09UJY1KtTfyYu4aDZJgZhppWFN1xch8XypkPLMc3IUJCumbCuYZ 2BXg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n20-20020a637214000000b005131739af72si901143pgc.755.2023.05.09.00.49.28; Tue, 09 May 2023 00:49: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 S229637AbjEIHXZ (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=3A_rt=3A_Remove_unnecessary_=E2=80=98NULL?= =?utf-8?q?=E2=80=99_values_from_push=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 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?1765402037792674377?= X-GMAIL-MSGID: =?utf-8?q?1765402037792674377?= push_task is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming Reviewed-by: Valentin Schneider --- 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)