From 2c6bee4955f64b8a5cba9872093b2648cfd6bea8 Mon Sep 17 00:00:00 2001 From: Andrzej Janik Date: Mon, 5 Jul 2021 01:14:46 +0200 Subject: Fix overzealus check --- zluda/src/impl/stream.rs | 3 --- 1 file changed, 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()?))? } -- cgit v1.2.3