Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2581380rwd; Mon, 22 May 2023 00:41:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6nUblnDSdhHme7+bzFy0r6IkozNHcmmS7q4ccH8UCtrcQcUHmlu1c1+ymy0AolgiNCbJQM X-Received: by 2002:a17:903:4ca:b0:1a6:b23c:3bf2 with SMTP id jm10-20020a17090304ca00b001a6b23c3bf2mr9708102plb.10.1684741275936; Mon, 22 May 2023 00:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684741275; cv=none; d=google.com; s=arc-20160816; b=d6iboI0n3juuJu3DPk0oGibS2nqpooJ9MJVD0T7Fc/+1uDNXymzfAJed/n1t8Ka5Rh Ee7zzNFDUbnjaIb2fp/wPEsp1N3OvwxN/HwsUfkplQnZ9ZnIbRkDfsghd58uMsyisOHR z6e5Cgtt63IrWGHyxy8QeTAdt/qQu9ixEQwGtP19hjKwAUNzhOs8fBzHz8xC5NB/0iYC tMWXOc3MP6juEkoKscNUZQhzq6WVFEXOLQOMIiYQjU25RFQusl9O99UWX+jYoAVl83AV jqOPdHoQhl9/EWQdH4h+K0cdyIFKkmyb/y0TqvOzNNun7oPVMQ5lc2tF6Myn1aNu8IG1 EEXQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020a170902c94800b0019e57f5a5aesi4441460pla.567.2023.05.22.00.41.03; Mon, 22 May 2023 00:41:15 -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 S232412AbjEVHLJ (ORCPT + 99 others); Mon, 22 May 2023 03:11:09 -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:=20deadline:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=98NULL=E2=80=99=20values=20from=20dl=5Ftask=5Foffline=5F?= =?UTF-8?q?migration?= 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 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 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); -- 2.18.2