virtio-devices: iommu: use inspect_err instead of map_err

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu 2024-07-23 19:34:21 +00:00 committed by Rob Bradford
parent 7e749c0390
commit b7512263be

View File

@ -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.