Re: [PATCH][next] accel/habanalabs: remove redundant assignment to pointer 'input'

2024-01-09 Thread Oded Gabbay
On 06/01/2024 14:42, Colin Ian King wrote: From: Colin Ian King 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:

[PATCH][next] accel/habanalabs: remove redundant assignment to pointer 'input'

2024-01-06 Thread Colin Ian King
From: Colin Ian King 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