diff options
author | chgnrdv <52372310+chgnrdv@users.noreply.github.com> | 2022-12-12 11:59:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 11:59:27 (GMT) |
commit | 3221b0de6792145cb4d0d461065a956db82acc93 (patch) | |
tree | e13dd20a2aa08de762972f10c6514ecb03c65547 /Python/sysmodule.c | |
parent | 621a1790c4d9e316c7228a13735bf71f2b0f5372 (diff) | |
download | cpython-3221b0de6792145cb4d0d461065a956db82acc93.zip cpython-3221b0de6792145cb4d0d461065a956db82acc93.tar.gz cpython-3221b0de6792145cb4d0d461065a956db82acc93.tar.bz2 |
gh-96715 Remove redundant NULL check in `profile_trampoline` function (#96716)
Closes #96715
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 88f806e..91f5c48 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) { |