]> Gentwo Git Trees - linux/.git/commit
gpu: nova-core: vbios: use size_of instead of magic number
authorRhys Lloyd <krakow20@gmail.com>
Fri, 18 Jul 2025 07:36:24 +0000 (00:36 -0700)
committerAlexandre Courbot <acourbot@nvidia.com>
Tue, 12 Aug 2025 00:57:33 +0000 (09:57 +0900)
commit0f85b6c1cb5746180b2bf674a436a48e6722e7ed
tree748a96bdb79c749701a145a664aad48d0168ef4d
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
gpu: nova-core: vbios: use size_of instead of magic number

12 is identical to the value of `size_of::<BitHeader>()`, so use the
latter instead.

[acourbot@nvidia.com: remove `dead_code` expect to fix `unfulfilled_lint_expectations` lint]

Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Rhys Lloyd <krakow20@gmail.com>
Link: https://lore.kernel.org/r/20250718073633.194032-2-krakow20@gmail.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/vbios.rs