[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230504095056.3677889-1-quanfafu@gmail.com>
Date: Thu, 4 May 2023 17:50:56 +0800
From: Quanfa Fu <quanfafu@...il.com>
To: peterz@...radead.org, mingo@...hat.com, acme@...nel.org,
mark.rutland@....com, alexander.shishkin@...ux.intel.com,
jolsa@...nel.org, namhyung@...nel.org, irogers@...gle.com,
adrian.hunter@...el.com
Cc: linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org,
Quanfa Fu <quanfafu@...il.com>
Subject: [PATCH] perf: Remove the redundant assignment operation
After commit bd2756811766 ("perf: Rewrite core context handling"), the variable
err will be assigned a value before use, so no need to assign it to -EINVAL
here.
Signed-off-by: Quanfa Fu <quanfafu@...il.com>
---
kernel/events/core.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 68baa8194d9f..c57b7aebf3ee 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -4752,7 +4752,6 @@ find_get_context(struct task_struct *task, struct perf_event *event)
return ctx;
}
- err = -EINVAL;
retry:
ctx = perf_lock_task_context(task, &flags);
if (ctx) {
--
2.31.1
Powered by blists - more mailing lists