commit a65be853f02665f33476c71033e4f77ba93f8e9a
parent a7aa51d8d57a698a5780556e054b2374c48ed5cf
Author: Joris Vink <joris@coders.se>
Date: Sun, 20 Feb 2022 21:27:35 +0100
Simplify python_push_integer().
We're not doing anything with ret, so kill it.
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/python.c b/src/python.c
@@ -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);
}