Re: [PATCH 1/2] rust: pci: get rid of redundant Result in IRQ methods
From: Danilo Krummrich
Date: Thu Nov 06 2025 - 04:27:28 EST
On 11/3/25 9:30 PM, Danilo Krummrich wrote:
> Currently request_irq() returns
>
> Result<impl PinInit<irq::Registration<T>, Error> + 'a>
>
> which may carry an error in the Result or the initializer; the same is
> true for request_threaded_irq().
>
> Use pin_init::pin_init_scope() to get rid of this redundancy.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
Applied to driver-core-testing, thanks!