diff --git a/pyopencl/cffi_cl.py b/pyopencl/cffi_cl.py index ea0907ef8d918b9e7ba3c48e673c1e9f9dd7da21..b9e8dc252635e4b0c4bfe10a71bdee8483cbab52 100644 --- a/pyopencl/cffi_cl.py +++ b/pyopencl/cffi_cl.py @@ -216,9 +216,6 @@ def _c_buffer_from_obj(obj, writable=False): a data stream to a C function. The dummy variable exists only to ensure that the Python object referencing the C buffer is not garbage collected at the end of this function, making the C buffer itself invalid. """ - - if obj is None: - return _ffi.NULL, 0 if _PYPY: # {{{ special case: numpy (also works with numpypy)