gh-96715 Remove redundant NULL check in `profile_trampoline` function (#96716)

Closes #96715
This commit is contained in:
chgnrdv 2022-12-12 14:59:27 +03:00 committed by GitHub
parent 621a1790c4
commit 3221b0de67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View 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) {