Commit 87990025 authored by Danilo Krummrich's avatar Danilo Krummrich Committed by Alexandre Courbot
Browse files

gpu: nova-core: gsp: remove useless conversion



Because nova-core depends on CONFIG_64BIT and a raw DmaAddress is
always a u64, we can remove the now actually useless conversion.

Signed-off-by: default avatarDanilo Krummrich <dakr@kernel.org>
Reviewed-by: default avatarJohn Hubbard <jhubbard@nvidia.com>
[acourbot@nvidia.com: reword commit as suggested by John.]
Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Message-ID: <20250926130623.61316-1-dakr@kernel.org>
parent 3a866087
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -202,8 +202,7 @@ pub(crate) fn new<'a, 'b>(
                let mut level0_data = kvec![0u8; GSP_PAGE_SIZE]?;

                // Fill level 1 page entry.
                #[allow(clippy::useless_conversion)]
                let level1_entry = u64::from(level1.iter().next().unwrap().dma_address());
                let level1_entry = level1.iter().next().unwrap().dma_address();
                let dst = &mut level0_data[..size_of_val(&level1_entry)];
                dst.copy_from_slice(&level1_entry.to_le_bytes());