diff options
| author | Adrian Hunter <[email protected]> | 2021-05-30 19:22:56 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-06-01 13:02:25 +0000 |
| commit | 4c62244e035e99a9e43d25a017cbe98f7562b21f (patch) | |
| tree | 9dedd2034283b3dd2cd661044e65a7281b3dd327 /tools/perf/scripts/python/Perf-Trace-Util/Context.c | |
| parent | perf test: Test 2 libpfm4 error cases (diff) | |
| download | kernel-4c62244e035e99a9e43d25a017cbe98f7562b21f.tar.gz kernel-4c62244e035e99a9e43d25a017cbe98f7562b21f.zip | |
perf scripting python: Remove unnecessary 'static'
The variables are always assigned before use, making the 'static'
storage class unnecessary.
Signed-off-by: Adrian Hunter <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/Context.c')
| -rw-r--r-- | tools/perf/scripts/python/Perf-Trace-Util/Context.c | 6 |
1 files 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; |
