mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 17:23:55 +08:00
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@intel.com> Cc: Arnaldo Carvalho de Melo <acme@kernel.org> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: https://lore.kernel.org/r/20210530192308.7382-2-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
6ea6883827
commit
4c62244e03
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user