[Python-checkins] gh-96715 Remove redundant NULL check in `profile_trampoline` function (#96716)
kumaraditya303
webhook-mailer at python.org
Mon Dec 12 06:59:34 EST 2022
https://github.com/python/cpython/commit/3221b0de6792145cb4d0d461065a956db82acc93
commit: 3221b0de6792145cb4d0d461065a956db82acc93
branch: main
author: chgnrdv <52372310+chgnrdv at users.noreply.github.com>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2022-12-12T17:29:27+05:30
summary:
gh-96715 Remove redundant NULL check in `profile_trampoline` function (#96716)
Closes #96715
files:
M Python/sysmodule.c
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) {
More information about the Python-checkins
mailing list