Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1460472lqj; Tue, 4 Jun 2024 02:08:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKiGpUF8o+1uYlOiMaxax+SwEkhwBnqXIWDDscqOx7JlGwwfkTSlh2Sv0dLc77ECWcBZ0+RJ8wMhzFMQMDIQLa/N9kqngh6ZjWWjyz1A== X-Google-Smtp-Source: AGHT+IHf5ZzS6d/1mPy6qVX0XwTzIdnukIW2iw+ORXLS3otzFXgAK3kj8ahpu3Np7DUvN0QBFCwy X-Received: by 2002:a05:6871:5d3:b0:24f:c5a6:2985 with SMTP id 586e51a60fabf-2508be16b98mr11692707fac.5.1717492132946; Tue, 04 Jun 2024 02:08:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717492132; cv=pass; d=google.com; s=arc-20160816; b=PN1GmMx0SBufNgoqardaKKcUBikVB/MtKj1SUWAAUE+KHlV9U37nV9dM+ezJkBgVO6 TQ5IZVL7s9jczsboPaxClzmsZCURMekGQX6aZwuEeaj+nEgO8EV79ztZ58Stqzi9nP49 Y3y9FYoZwlVxOkhqccduS8airqZ0YWqkFbjYT9nN4nhbOfreYoN/KF8oyc3FOMjp7qs+ PGOsUbO+ryIOlKGMSz3wWedJT3bib6UsxXHkKLJBtWFIlfSH8kJzfVFJjQ+GC5WeL7wh 8HsZcBTL4Gz6AFjbl0PtkbwGF7bZmNk4lEEoVKDlIdj6Nz2XNSbGmk1s9pO15Tfv+Je/ wXfg== 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=+97ZwXhB8hF+jE4Anrz9VRbLxnt86yAPn37/HyuqS2U=; fh=yTHXes7gwMGdNPAuGbG/IdVB82PnGmIVQm8z0TZ64Gg=; b=WH/A5VeosJUIQFv0+7DZfPGbfKoEkdyqqM7XiW8y5VHklzxRyWTsviouK7ZZJe7RS6 8AYEC93uoizseNKV8oPjQZCcg8NdC10oBYdkTiCkgCpxrVtu6Euu5ZbFtUilfbIPGsEa rq3aDpw2rwOzn7xkTMwQuvZ/nuWcKTCNoBQ+MdD47XAlgrPVVfQe2/3HwE55aPkcpy7p skFKPiPsy+ceS1IWuRRhNc5lTCNM8MBVUO8CG0dmTF+aWVIVYL0zRkM/r9qQPQhSZ7mM GqgyG3pwOmhRG4erVpe4i5q+B5yY5emCxL2pZaN4tOOmcc84KCwGM3OTNXxwHSin+o7V 2GRw==; 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-200309-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200309-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35c552911si925542a12.691.2024.06.04.02.08.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 02:08:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200309-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-200309-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200309-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4B9AE283809 for ; Tue, 4 Jun 2024 09:08:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46D19143895; Tue, 4 Jun 2024 09:08:37 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 5A7B6143861; Tue, 4 Jun 2024 09:08:31 +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=1717492116; cv=none; b=qz51BKj5eW1z8hWhH2xshYFYTn5Fks56TywBN16o23Gl9oGm13j/6Cker5pv6MvWuG18Y5jZIR0Ivk8bgP3jrLymiv1vDsjuQDaM9/yX2LjQ2TxmFPvm7SAWvbaMvqI7NN5j292JPzB+hcMX8ojtGU/3iMrxCtrTDd80i/JFfiQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717492116; c=relaxed/simple; bh=hGb4UAIi4lt+FKNZcwxdqAoWUZ+8IgXCNR6exSoJQCM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=FUaC/RrnYTxsbYHRvFr6ko78PitkwU4xeY2Vv00io0//07LFDtutWcb0+xDD+oQ5qS3vk+n3WLKeUKXAMzo25r7Zxnss/0AZT7c4ZPbPPscdgsbFTqjv/cnS74gfSRKYHT+g+DXKtR9iFgSe77Mn3L8RY9bmRp9UDJngtljwpkc= 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 86F81604BB2D1; Tue, 4 Jun 2024 17:08:10 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, kan.liang@linux.intel.com Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?events:=20core:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=98NULL=E2=80=99=20values=20from=20task=5Fepc?= Date: Tue, 4 Jun 2024 17:07:30 +0800 Message-Id: <20240604090730.62670-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 task_epc is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- kernel/events/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index f0128c5ff278..5e1a4cbdb67d 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -4283,7 +4283,7 @@ ctx_event_to_rotate(struct perf_event_pmu_context *pmu_ctx) static bool perf_rotate_context(struct perf_cpu_pmu_context *cpc) { struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); - struct perf_event_pmu_context *cpu_epc, *task_epc = NULL; + struct perf_event_pmu_context *cpu_epc, *task_epc; struct perf_event *cpu_event = NULL, *task_event = NULL; int cpu_rotate, task_rotate; struct pmu *pmu; -- 2.18.2