]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: pci: get rid of redundant Result in IRQ methods
authorDanilo Krummrich <dakr@kernel.org>
Mon, 3 Nov 2025 20:30:12 +0000 (21:30 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Thu, 6 Nov 2025 09:19:36 +0000 (10:19 +0100)
commit1f7b01661f5f62211ca079afee922e1b44e3ae5d
tree8e1c22694485239209e517e7cfbe73f4a790d812
parent1bf5b90cd2f984e5d6ff6fd30d5d85f9f579b6f0
rust: pci: get rid of redundant Result in IRQ methods

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.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20251103203053.2348783-1-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/pci/irq.rs