Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: echoaudio: remove redundant assignment to variable clock

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@gmail.com>
Link: https://lore.kernel.org/r/20240221113809.3410109-1-colin.i.king@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Colin Ian King and committed by
Takashi Iwai
37270950 3fdecc7d

-1
-1
sound/pci/echoaudio/echoaudio_3g.c
··· 274 274 chip->digital_mode == DIGITAL_MODE_ADAT)) 275 275 return -EINVAL; 276 276 277 - clock = 0; 278 277 control_reg = le32_to_cpu(chip->comm_page->control_register); 279 278 control_reg &= E3G_CLOCK_CLEAR_MASK; 280 279