]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: vbios: use let-else in Vbios::new
authorEliot Courtney <ecourtney@nvidia.com>
Mon, 25 May 2026 13:57:35 +0000 (22:57 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 25 May 2026 18:18:08 +0000 (20:18 +0200)
commite8baefdffd4e131138e5c17ae3c5b2b2a907ba3f
tree99728a7a3d6bf5b1598511a079115da4f147d166
parent43e7bef8c05471fd8f44dec17994ef247092df26
gpu: nova-core: vbios: use let-else in Vbios::new

Improve readability by moving the success path outside of a nested
branch.

Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Eliot Courtney <ecourtney@nvidia.com>
Link: https://patch.msgid.link/20260525-fix-vbios-v5-17-e5e455251537@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/vbios.rs