Simplify python_push_integer().

We're not doing anything with ret, so kill it.
This commit is contained in:
Joris Vink 2022-02-20 21:27:35 +01:00
parent a7aa51d8d5
commit a65be853f0
1 changed files with 1 additions and 3 deletions

View File

@ -1789,9 +1789,7 @@ python_push_type(const char *name, PyObject *module, PyTypeObject *type)
static void
python_push_integer(PyObject *module, const char *name, long value)
{
int ret;
if ((ret = PyModule_AddIntConstant(module, name, value)) == -1)
if (PyModule_AddIntConstant(module, name, value) == -1)
fatal("python_push_integer: failed to add %s", name);
}