]> git.ipfire.org Git - thirdparty/linux.git/commit
gpu: nova-core: gsp: use empty slices instead of [0..0] ranges
authorEliot Courtney <ecourtney@nvidia.com>
Thu, 29 Jan 2026 07:45:01 +0000 (16:45 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Tue, 24 Feb 2026 23:16:55 +0000 (08:16 +0900)
commitf6f072d8ef06ff5d29a6bb1bade3da29a1aafeec
tree95c8f277a0c5cee8f7d8649400c9ac5bef26ae75
parentbbe6831c02d8a381d0858382597b0bea3252fd6a
gpu: nova-core: gsp: use empty slices instead of [0..0] ranges

The current code unnecessarily uses, for example, &before_rx[0..0] to
return an empty slice. Instead, just use an empty slice.

Signed-off-by: Eliot Courtney <ecourtney@nvidia.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260129-nova-core-cmdq1-v3-3-2ede85493a27@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/gsp/cmdq.rs