Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-96715 Remove redundant NULL check in profile_trampoline function (…
…sysmodule.c)

Fixes #96715
  • Loading branch information
chgnrdv committed Sep 9, 2022
commit e46bb99a184572fc5db883d4241d0474eef3a184
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) {
Comment thread
kumaraditya303 marked this conversation as resolved.
arg = Py_None;
}

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