forked from M-Labs/zynq-rs
remove UB assert in uncached
This commit is contained in:
parent
b59f6569a5
commit
5ebd482c25
|
@ -33,8 +33,6 @@ impl<T> UncachedSlice<T> {
|
|||
}
|
||||
|
||||
let slice = unsafe { core::slice::from_raw_parts_mut(ptr, len) };
|
||||
// verify size
|
||||
assert!(unsafe { slice.get_unchecked(len) } as *const _ as usize <= start + size);
|
||||
// initialize
|
||||
for e in slice.iter_mut() {
|
||||
*e = default();
|
||||
|
|
Loading…
Reference in New Issue