]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
accel/habanalabs/goya: remove redundant assignment to pointer 'input'
authorColin Ian King <colin.i.king@intel.com>
Sat, 6 Jan 2024 12:42:13 +0000 (12:42 +0000)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 26 Feb 2024 07:30:40 +0000 (09:30 +0200)
commit5ae8b6b774732d38840dd7562dc14d1950530023
tree43430a8dc617beb413e9660c3deddf97667a1fc2
parent01f8cd0fafa69c95aa67fa316a23977eb5a2cb50
accel/habanalabs/goya: remove redundant assignment to pointer 'input'

The pointer input is assigned a value that is not read, it is
being re-assigned again later with the same value. Resolve this
by moving the declaration to input into the if block.

Cleans up clang scan build warning:
warning: Value stored to 'input' during its initialization is never
read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@intel.com>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/goya/goya_coresight.c