]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: fw: get rid of redundant Result in GspFirmware::new()
authorDanilo Krummrich <dakr@kernel.org>
Thu, 18 Dec 2025 15:50:48 +0000 (16:50 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 29 Dec 2025 16:54:31 +0000 (17:54 +0100)
commitdb22fbc15a9cea7e3f74a53d36c381503b6ca43e
treeaec41f457c691b65b5deeb7589dd55bbac9825c0
parent255153afbcfdcf30d20048fb76a6d9418537b5d9
gpu: nova-core: fw: get rid of redundant Result in GspFirmware::new()

In GspFirmware::new(), utilize pin_init_scope() to get rid of the Result
in the returned

Result<impl PinInit<T, Error>>

which is unnecessarily redundant.

Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Link: https://patch.msgid.link/20251218155239.25243-2-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/firmware/gsp.rs
drivers/gpu/nova-core/gsp/boot.rs