From 83447a51b664df5a9ace0bb74740fe8259473950 Mon Sep 17 00:00:00 2001 From: Marko Bencun Date: Wed, 11 Sep 2013 15:15:48 +0200 Subject: [PATCH] _c_buffer_from_obj: do not allow None --- pyopencl/cffi_cl.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pyopencl/cffi_cl.py b/pyopencl/cffi_cl.py index ea0907ef..b9e8dc25 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) -- GitLab