lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240604090730.62670-1-zeming@nfschina.com>
Date: Tue,  4 Jun 2024 17:07:30 +0800
From: Li zeming <zeming@...china.com>
To: mingo@...hat.com,
	acme@...nel.org,
	namhyung@...nel.org,
	mark.rutland@....com,
	alexander.shishkin@...ux.intel.com,
	jolsa@...nel.org,
	irogers@...gle.com,
	adrian.hunter@...el.com,
	kan.liang@...ux.intel.com
Cc: linux-perf-users@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Li zeming <zeming@...china.com>
Subject: [PATCH] events: core: Remove unnecessary ‘NULL’ values from task_epc

task_epc is assigned first, so it does not need to initialize the 
assignment.

Signed-off-by: Li zeming <zeming@...china.com>
---
 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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ