diff options
author | Alexey Borzenkov <snaury@gmail.com> | 2014-09-25 00:46:04 +0400 |
---|---|---|
committer | Alexey Borzenkov <snaury@gmail.com> | 2014-09-25 00:46:04 +0400 |
commit | 67d8e6744f0ff23e716f73942fec0f919a3ebee1 (patch) | |
tree | f800f3f9756d6b60fd5d9946874c0aa917984d9a | |
parent | f0eb1dd58a619449aac39ba08efbe6e5d9a52058 (diff) | |
download | greenlet-67d8e6744f0ff23e716f73942fec0f919a3ebee1.tar.gz |
Remove unnecessary STATE_OK in green_new
-rw-r--r-- | greenlet.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -822,11 +822,7 @@ static int GREENLET_NOINLINE(g_initialstub)(void* mark) static PyObject* green_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { - PyObject* o; - if (!STATE_OK) - return NULL; - - o = PyBaseObject_Type.tp_new(type, ts_empty_tuple, ts_empty_dict); + PyObject* o = PyBaseObject_Type.tp_new(type, ts_empty_tuple, ts_empty_dict); if (o != NULL) { if (!STATE_OK) { Py_DECREF(o); |