Skip to content

Commit

Permalink
fix(gem-net): clippy::unnecessary_cast
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed May 1, 2024
1 parent efbafce commit 6bca1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/net/gem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ impl GEMDriver {
debug!("rx_buffer_consumed: handle: {}", handle);

let word0_addr = (self.rxbuffer_list + (handle * 8) as u64);
let word1_addr = word0_addr + 4 as u64;
let word1_addr = word0_addr + 4_u64;

unsafe {
// Clear word1 (is this really necessary?)
Expand Down

0 comments on commit 6bca1c5

Please sign in to comment.