Skip to content

Commit

Permalink
gh-96715 Remove redundant NULL check in profile_trampoline function (
Browse files Browse the repository at this point in the history
  • Loading branch information
chgnrdv authored Dec 12, 2022
1 parent 621a179 commit 3221b0d
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 @@ -950,10 +950,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 3221b0d

Please sign in to comment.