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

Currently request_irq_by_index() 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 the other IRQ methods.

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-2-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/platform.rs