Skip to content

Commit

Permalink
pythongh-96715 Remove redundant NULL check in profile_trampoline func…
Browse files Browse the repository at this point in the history
…tion (sysmodule.c)

Fixes python#96715
  • Loading branch information
chgnrdv committed Sep 9, 2022
1 parent 30cc190 commit e46bb99
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Python/sysmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,10 +951,6 @@ static int
profile_trampoline(PyObject *self, PyFrameObject *frame,
int what, PyObject *arg)
{
if (arg == NULL) {
arg = Py_None;
}

PyThreadState *tstate = _PyThreadState_GET();
PyObject *result = call_trampoline(tstate, self, frame, what, arg);
if (result == NULL) {
Expand Down

0 comments on commit e46bb99

Please sign in to comment.