Commit 01eda614 authored by cgohlke's avatar cgohlke Committed by Stefan Behnel

Remove superfluous code

Pointer buf cannot be NULL
parent e8623d15
...@@ -394,11 +394,7 @@ __Pyx_init_memviewslice(struct __pyx_memoryview_obj *memview, ...@@ -394,11 +394,7 @@ __Pyx_init_memviewslice(struct __pyx_memoryview_obj *memview,
Py_buffer *buf = &memview->view; Py_buffer *buf = &memview->view;
__Pyx_RefNannySetupContext("init_memviewslice", 0); __Pyx_RefNannySetupContext("init_memviewslice", 0);
if (!buf) { if (memviewslice->memview || memviewslice->data) {
PyErr_SetString(PyExc_ValueError,
"buf is NULL.");
goto fail;
} else if (memviewslice->memview || memviewslice->data) {
PyErr_SetString(PyExc_ValueError, PyErr_SetString(PyExc_ValueError,
"memviewslice is already initialized!"); "memviewslice is already initialized!");
goto fail; goto fail;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment