diff options
author | Andrzej Janik <[email protected]> | 2021-07-05 01:14:46 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-07-05 01:14:46 +0200 |
commit | 2c6bee4955f64b8a5cba9872093b2648cfd6bea8 (patch) | |
tree | 1c09e9d246451494e2245c1f52e2b3225a313a1b /zluda/src | |
parent | 1897d339166e4bdb7ecb43b6a42f04de45d75efc (diff) | |
download | ZLUDA-2c6bee4955f64b8a5cba9872093b2648cfd6bea8.tar.gz ZLUDA-2c6bee4955f64b8a5cba9872093b2648cfd6bea8.zip |
Fix overzealus check
Diffstat (limited to 'zluda/src')
-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()?))? } |