forked from M-Labs/zynq-rs
remove UB assert in uncached
This commit is contained in:
parent
4138a65270
commit
3e59dcbc94
|
@ -33,8 +33,6 @@ impl<T> UncachedSlice<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
let slice = unsafe { core::slice::from_raw_parts_mut(ptr, len) };
|
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
|
// initialize
|
||||||
for e in slice.iter_mut() {
|
for e in slice.iter_mut() {
|
||||||
*e = default();
|
*e = default();
|
||||||
|
|
Loading…
Reference in New Issue