[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210530192308.7382-2-adrian.hunter@intel.com>
Date: Sun, 30 May 2021 22:22:56 +0300
From: Adrian Hunter <adrian.hunter@...el.com>
To: Arnaldo Carvalho de Melo <acme@...nel.org>,
Jiri Olsa <jolsa@...hat.com>, Andi Kleen <ak@...ux.intel.com>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH 01/13] perf scripting python: Remove unnecessary 'static'
The variables are always assigned before use, making the 'static'
storage class unnecessary.
Signed-off-by: Adrian Hunter <adrian.hunter@...el.com>
---
tools/perf/scripts/python/Perf-Trace-Util/Context.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/perf/scripts/python/Perf-Trace-Util/Context.c b/tools/perf/scripts/python/Perf-Trace-Util/Context.c
index 0b7096847991..fdf692d1e8f3 100644
--- a/tools/perf/scripts/python/Perf-Trace-Util/Context.c
+++ b/tools/perf/scripts/python/Perf-Trace-Util/Context.c
@@ -22,7 +22,7 @@ PyMODINIT_FUNC PyInit_perf_trace_context(void);
static PyObject *perf_trace_context_common_pc(PyObject *obj, PyObject *args)
{
- static struct scripting_context *scripting_context;
+ struct scripting_context *scripting_context;
PyObject *context;
int retval;
@@ -38,7 +38,7 @@ static PyObject *perf_trace_context_common_pc(PyObject *obj, PyObject *args)
static PyObject *perf_trace_context_common_flags(PyObject *obj,
PyObject *args)
{
- static struct scripting_context *scripting_context;
+ struct scripting_context *scripting_context;
PyObject *context;
int retval;
@@ -54,7 +54,7 @@ static PyObject *perf_trace_context_common_flags(PyObject *obj,
static PyObject *perf_trace_context_common_lock_depth(PyObject *obj,
PyObject *args)
{
- static struct scripting_context *scripting_context;
+ struct scripting_context *scripting_context;
PyObject *context;
int retval;
--
2.17.1
Powered by blists - more mailing lists