Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/vmm/src/utils/net/mac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ impl MacAddr {
/// * `src` - slice from which to copy MAC address content.
#[inline]
pub fn from_bytes_unchecked(src: &[u8]) -> MacAddr {
// TODO: using something like std::mem::uninitialized could avoid the extra initialization,
// if this ever becomes a performance bottleneck.
let mut bytes = [0u8; MAC_ADDR_LEN as usize];
bytes[..].copy_from_slice(src);

Expand Down