Re: [PATCH][next] xirc2ps_cs: remove redundant assignment to variable okay, clean up freespace

From: Simon Horman
Date: Wed Feb 07 2024 - 04:40:28 EST


On Mon, Feb 05, 2024 at 09:36:43PM +0000, Colin Ian King wrote:
> The variable okay 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 clean up assignment to
> variable freespace using an assignment and mask operation.
>
> Cleans up clang scan build warning:
> drivers/net/ethernet/xircom/xirc2ps_cs.c:1244:5: warning: Value stored
> to 'okay' is never read [deadcode.DeadStores]
>
> Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>