From: Adrian Hunter Date: Sun, 30 May 2021 19:22:56 +0000 (+0300) Subject: perf scripting python: Remove unnecessary 'static' X-Git-Tag: accepted/tizen/unified/20230118.172025~6929^2~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c62244e035e99a9e43d25a017cbe98f7562b21f;p=platform%2Fkernel%2Flinux-rpi.git perf scripting python: Remove unnecessary 'static' The variables are always assigned before use, making the 'static' storage class unnecessary. Signed-off-by: Adrian Hunter Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: Jiri Olsa Link: https://lore.kernel.org/r/20210530192308.7382-2-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/scripts/python/Perf-Trace-Util/Context.c b/tools/perf/scripts/python/Perf-Trace-Util/Context.c index 0b70968..fdf692d 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;