]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: host1x: remove redundant assignment to variable space
authorColin Ian King <colin.i.king@gmail.com>
Thu, 15 Feb 2024 22:43:01 +0000 (22:43 +0000)
committerThierry Reding <treding@nvidia.com>
Fri, 16 Feb 2024 10:51:46 +0000 (11:51 +0100)
commitb40034994f60082898586f906a31a9eab7fcd814
tree512465b9abf8ac229c272a00e27aff75777ea801
parent1a5e81de180e51d3c6fa9ba118abda9b88473c00
gpu: host1x: remove redundant assignment to variable space

The variable space is being initialized with a value that is never read,
it is being re-assigned later on. The initialization is redundant and
can be removed. Also merge two declaration lines together.

Cleans up clang scan build warning:
drivers/gpu/host1x/cdma.c:628:15: warning: Value stored to 'space'
during its initialization is never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240215224301.2073845-1-colin.i.king@gmail.com
drivers/gpu/host1x/cdma.c