Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2472304lqb; Tue, 28 May 2024 00:16:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9IQ3IVOzLC9Lh/hVTSM6+4qJnTyVtKSEGVw6GmaOPIcYAOSwwUtYlhaNORjLk7taf3N3CaJHBbUp+Yd5GeWO5Cuo3+UlXHcVpdIt5Yw== X-Google-Smtp-Source: AGHT+IGoeLm/BGG2eKEbw/6h5xW0T56R2sX9m3DK/zvGWVJ0CUyBPEakjUdanKqKDKflp1IE62Ft X-Received: by 2002:a05:6808:2121:b0:3c9:96a2:61a6 with SMTP id 5614622812f47-3d1a7646fc9mr14029114b6e.41.1716880568368; Tue, 28 May 2024 00:16:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716880568; cv=pass; d=google.com; s=arc-20160816; b=td+vVoPpKQm6s0IGOLAQ16cklqWj1OyDAuVAWfDfLVObvdIraXnxxL8wufUZsY5XR5 HFwZrLnuMScI9+YKLuuT7m2z4rIffILiouiua0JhzpptleIy1jtkCH++cgGGRATHDnCb wUzPR5cGBKy8M5SvrehQJskqaEipA6EM+brluEzqNqhb2FD8nrgx/gYSU7UzeDdRYhyX 6nvwo/Dop/fVw6qsjX+cLo0WVkqSYwbiyuZFr88BodwUjDNhQYuwC/T9b3e69H8dpO96 kICceXEQGxE+qHB4KXlo6FKCztFGDkGxXXW8nJlPtti2Jdm8yR4RJR+Du6WaoZqXxez1 lN1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=PwjS4mt39qw2K8ZUUJ1yHLSu9dyhoqUFq8kAFHFJ/qQ=; fh=thqVJ9tlYA2lOMLrt58Vn14YmV8tgqIPIEPNF4LEV0k=; b=sy7KCppHDBKtkt7PUendffZkEquD9xWtw+3qDffjMHpebCOnMdqldddRuk+wOyjB/U zSrmBeyyBpIIHlb8zl2TaP0kvARakM60ICxCzuCX5Qn66/ALYe82y7UaA/pVTV74HlgQ XGhnxngHYIRCyyN9jPT4t98IlAOcl+WGwLU5nQpHlnHjTdFqprJ6iFk4gaH7Kx+dl0LV lQ2v1mL6hR1nnU/cK30bk0De8dB9IYHkGkBUzPzGabfPHorQI4eSHc2VBd6hwQQJHubs 19qah6m+WRaCGuUQYtPKgXqMVMmM9ufi0zVeQSTuWZGTGLfgFH9DyDjHmBjjumx97q/F KzKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-191854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191854-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb17ba725si110545541cf.157.2024.05.28.00.16.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 00:16:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-191854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191854-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1CCC11C22367 for ; Tue, 28 May 2024 07:16:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C440573468; Tue, 28 May 2024 07:15:51 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id E5CB171750 for ; Tue, 28 May 2024 07:15:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716880551; cv=none; b=qwBDtcH6d3xm2Se/W/9kIFsO2/kjrT+9HVVCCWMaH7Cs674dfh2QDSgvCvpJuYgNHdo4H3M80xuCRIlwO1ihw0DpE4PpRqlg6EklmJbVxnYEFw4t1aRXTkvTt+WfatO5tFGJQhL2Q8ip80ejJsCh5iR3wL9bdanLhEH2VSrjMD8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716880551; c=relaxed/simple; bh=63kmL1bSMZDegOF14Oz7zv6wc4NYKe2HUnMjWCJeKBs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=KKJPWBWtzwfTLY5AtwachzJ8pxzBXyKwyZTKqIVHtrMtBNtLAJdWFDYUEH8hJfYPz85eEAt8H6qYW0MCcqYCaTSJHJO6LmFOD6tSMpiAYyuygqYukgv56PqsV4R7PLXS+lGk8aEGCgUIGCDkovd+mUQxiqqqb0OeBE30nmDG3SQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 56E3462506E8B; Tue, 28 May 2024 15:15:43 +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:=20core:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=98NULL=E2=80=99=20values=20from=20core=5Frq?= Date: Tue, 28 May 2024 15:14:46 +0800 Message-Id: <20240528071446.59197-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit core_rq is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index e32fea8f5830..346159a24705 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6485,7 +6485,7 @@ static void sched_core_cpu_starting(unsigned int cpu) static void sched_core_cpu_deactivate(unsigned int cpu) { const struct cpumask *smt_mask = cpu_smt_mask(cpu); - struct rq *rq = cpu_rq(cpu), *core_rq = NULL; + struct rq *rq = cpu_rq(cpu), *core_rq; int t; guard(core_lock)(&cpu); -- 2.18.2