* [PATCH] events: core: Remove unnecessary ‘NULL’ values from task_epc
@ 2024-06-04 9:07 Li zeming
0 siblings, 0 replies; only message in thread
From: Li zeming @ 2024-06-04 9:07 UTC (permalink / raw)
To: mingo, acme, namhyung, mark.rutland, alexander.shishkin, jolsa,
irogers, adrian.hunter, kan.liang
Cc: linux-perf-users, linux-kernel, Li zeming
task_epc is assigned first, so it does not need to initialize the
assignment.
Signed-off-by: Li zeming <zeming@nfschina.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-04 9:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-04 9:07 [PATCH] events: core: Remove unnecessary ‘NULL’ values from task_epc Li zeming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®