From patchwork Tue May 23 23:41:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 97141 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1272839vqo; Mon, 22 May 2023 00:46:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5YHb379qlaBZmtjc6krS1p4GjwhuIv71o4LL674RM3t9XxgJ7foqQhDaHsFi9zKJKNreLT X-Received: by 2002:a05:6a00:2411:b0:646:c30d:e9c2 with SMTP id z17-20020a056a00241100b00646c30de9c2mr11076392pfh.28.1684741566868; Mon, 22 May 2023 00:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684741566; cv=none; d=google.com; s=arc-20160816; b=ly78mPGfHRkI+IntpdDG47OpGtUL/XXgtDrD4bPoCeRWN1zhlCq9Qx7CLb/xDRNZF2 TZjwtO4t9KoZu/w869C2I9WGLQBI+marxOGnGzzlGSlWYcZYBgZjo1GoLMtDZa1Rke55 PnTjXo7Fd0uUGARc90w/WmQ3ndl1DUviYCzI0+6xxugy3zCxYIJuuxR9hC4qaOTS4MP5 xatfY69M6/i2cQWHFnJumY5xF/vqc+4qcQsR4IFZ8pkZEZbg2vFd6DGj/ZNiqWfLUM29 R5pmgzLveSKMcFkX4Jb33X//3jr1BWb2VFU8LGrtBkXCgCyOIoX5SKptKvvcmSH1/YTK VQkA== 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=s+atVG3jBw/hj5rclixP2bakIQiSHopc6b7p2cSeoBc=; b=p2YituB0fScGzdosCXhe1HpAjiSSkFIY4153VND4DUdJErZTra+n4BM8qzVSoxJFFa iZuAP+YtBx7uNSP2NSEB5QJvrlq0W1DanhD0W8Ue4n1jQimcFRZgGt8w3DtlbLBrKVCn eCJvkjbswAi/NCNnwF+nqYEHaqcmPHghXAmTtIfmRzVq1sZ2oCjH0Y+yisM+nfBxOQ0e yvaAAjzsguUuoMgnxkCVX0ci8y3P5ShWMARDMuyVSurch60UI2YDxPA9YLSx7IBYGYIZ Gm5a+1tShJwwmmi9SD0w/1nKnZ2kbqmEJlkObwsYZmYnYK7SGY1bUq8IVy8GpIbjIZY2 v3ew== 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 y3-20020aa79ae3000000b00643aa8d2548si182195pfp.120.2023.05.22.00.45.54; Mon, 22 May 2023 00:46:06 -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 S232414AbjEVHLK (ORCPT + 99 others); Mon, 22 May 2023 03:11:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232570AbjEVHKN (ORCPT ); Mon, 22 May 2023 03:10:13 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 9B72CCA for ; Mon, 22 May 2023 00:10:02 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id F3D981800CE4E3; Mon, 22 May 2023 15:09:46 +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_deadline=3A_Remove_unnecessary_=E2=80=98?= =?utf-8?q?NULL=E2=80=99_values_from_dl=5Ftask=5Foffline=5Fmigration?= Date: Wed, 24 May 2023 07:41:01 +0800 Message-Id: <20230523234101.3439-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?1766578305218625819?= X-GMAIL-MSGID: =?utf-8?q?1766579573171710252?= later_rq is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 5a9a4b81c972..d823e608c7f0 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -667,7 +667,7 @@ static struct rq *find_lock_later_rq(struct task_struct *task, struct rq *rq); static struct rq *dl_task_offline_migration(struct rq *rq, struct task_struct *p) { - struct rq *later_rq = NULL; + struct rq *later_rq; struct dl_bw *dl_b; later_rq = find_lock_later_rq(p, rq);