Skip to content

Commit

Permalink
virtio-devices: iommu: use inspect_err instead of map_err
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Liu <liuwe@microsoft.com>
  • Loading branch information
liuw authored and rbradford committed Jul 23, 2024
1 parent 7e749c0 commit b751226
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions virtio-devices/src/iommu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,8 @@ impl Request {
let desc = desc_chain
.next()
.ok_or(Error::DescriptorChainTooShort)
.map_err(|e| {
.inspect_err(|_| {
error!("Missing head descriptor");
e
})?;

// The descriptor contains the request type which MUST be readable.
Expand Down

0 comments on commit b751226

Please sign in to comment.