diff options
Diffstat (limited to 'zluda/src/impl/stream.rs')
-rw-r--r-- | zluda/src/impl/stream.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/zluda/src/impl/stream.rs b/zluda/src/impl/stream.rs index da25083..59f8778 100644 --- a/zluda/src/impl/stream.rs +++ b/zluda/src/impl/stream.rs @@ -168,9 +168,6 @@ pub(crate) fn destroy_v2(pstream: *mut Stream) -> Result<(), CUresult> { } pub(crate) fn synchronize(pstream: *mut Stream) -> Result<(), CUresult> { - if pstream == ptr::null_mut() { - return Err(CUresult::CUDA_ERROR_INVALID_VALUE); - } GlobalState::lock_stream(pstream, |stream_data| Ok(stream_data.synchronize()?))? } |