gpu: nova-core: use try_from instead of as for u32 conversions

There are a few situations in the driver where we convert a `usize` into
a `u32` using `as`. Even though most of these are obviously correct, use
`try_from` and let the compiler optimize wherever it is safe to do so.

Acked-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Message-ID: <20251029-nova-as-v3-3-6a30c7333ad9@nvidia.com>
This commit is contained in:
Alexandre Courbot 2025-10-29 08:12:11 +09:00
commit 6553a8f168
2 changed files with 11 additions and 13 deletions