Skip to content

Commit

Permalink
remove redundant cast
Browse files Browse the repository at this point in the history
  • Loading branch information
cagatay-y committed Oct 25, 2023
1 parent ae3d7b8 commit eff46b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/virtio/virtqueue/split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ impl SplitVq {
flags: &mut *(used_raw as *mut u16),
index: used_raw.offset(2) as *mut u16,
ring: core::slice::from_raw_parts_mut(
(used_raw.offset(4) as *const _) as *mut UsedElem,
used_raw.offset(4) as *mut UsedElem,
size as usize,
),
event: &mut *(used_raw.offset(4 + 8 * (size as isize)) as *mut u16),
Expand Down

0 comments on commit eff46b5

Please sign in to comment.