Re: [PATCH v13 4/7] rust: device: add dma addressing capabilities

From: Andreas Hindborg
Date: Tue Mar 11 2025 - 16:17:09 EST


Miguel Ojeda <miguel.ojeda.sandonis@xxxxxxxxx> writes:

> On Tue, Mar 11, 2025 at 6:45 PM Abdiel Janulgue
> <abdiel.janulgue@xxxxxxxxx> wrote:
>>
>> This already uses `Error::from_errno`?
>
> Maybe Andreas meant `to_result`?

Yes, sorry. It includes the if/else, but it tests for ret < 0. But I
think that is fine here.


Best regards,
Andreas Hindborg