mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
gh-96715 Remove redundant NULL check in profile_trampoline
function (#96716)
Closes #96715
This commit is contained in:
parent
621a1790c4
commit
3221b0de67
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user