]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-96715 Remove redundant NULL check in `profile_trampoline` function (#96716)
authorchgnrdv <52372310+chgnrdv@users.noreply.github.com>
Mon, 12 Dec 2022 11:59:27 +0000 (14:59 +0300)
committerGitHub <noreply@github.com>
Mon, 12 Dec 2022 11:59:27 +0000 (17:29 +0530)
Closes #96715

Python/sysmodule.c

index 88f806e616f27e86ab1ce6bc5f24d7fb2339b7b3..91f5c487c98fe373e29a17b67f21d2c90b39080a 100644 (file)
@@ -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) {