From: chgnrdv <52372310+chgnrdv@users.noreply.github.com> Date: Mon, 12 Dec 2022 11:59:27 +0000 (+0300) Subject: gh-96715 Remove redundant NULL check in `profile_trampoline` function (#96716) X-Git-Tag: v3.12.0a4~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3221b0de6792145cb4d0d461065a956db82acc93;p=thirdparty%2FPython%2Fcpython.git gh-96715 Remove redundant NULL check in `profile_trampoline` function (#96716) Closes #96715 --- diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 88f806e616f2..91f5c487c98f 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -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) {