Skip to content

Commit 3221b0d

Browse files
authored
gh-96715 Remove redundant NULL check in profile_trampoline function (#96716)
Closes #96715
1 parent 621a179 commit 3221b0d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Python/sysmodule.c

-4
Original file line numberDiff line numberDiff line change
@@ -950,10 +950,6 @@ static int
950950
profile_trampoline(PyObject *self, PyFrameObject *frame,
951951
int what, PyObject *arg)
952952
{
953-
if (arg == NULL) {
954-
arg = Py_None;
955-
}
956-
957953
PyThreadState *tstate = _PyThreadState_GET();
958954
PyObject *result = call_trampoline(tstate, self, frame, what, arg);
959955
if (result == NULL) {

0 commit comments

Comments
 (0)