Re: [PATCH][next] ALSA: echoaudio: remove redundant assignment to variable clock

From: Takashi Iwai
Date: Thu Feb 22 2024 - 04:06:03 EST


On Wed, 21 Feb 2024 12:38:09 +0100,
Colin Ian King wrote:
>
> The variable clock is being assigned a value that is never read,
> it is being re-assigned a new value in every case in the following
> switch statement. The assignment is redundant and can be removed.
>
> Cleans up clang scan build warning:
> sound/pci/echoaudio/echoaudio_3g.c:277:2: warning: Value stored
> to 'clock' is never read [deadcode.DeadStores]
>
> Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx>

Thanks, applied.


Takashi