1
0
mirror of https://git.kore.io/kore.git synced 2024-11-16 06:56:33 +01:00

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

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);
}