forked from M-Labs/zynq-rs
remove UB assert in uncached
This commit is contained in:
parent
d4cd8e8bb8
commit
3730554a46
|
@ -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