OSDN Git Service

ALSA: au88x0: remove redundant assignment of variable i
authorColin Ian King <colin.king@canonical.com>
Tue, 17 Oct 2017 11:53:21 +0000 (12:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 17 Oct 2017 12:14:04 +0000 (14:14 +0200)
The assignment to variable i is redundant as it is never read
because it is updated a little later on. Remove this assignment.
Cleans up clang warning: Value stored to 'i' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/au88x0/au88x0_core.c

index c308a4f..4083c8b 100644 (file)
@@ -2628,7 +2628,7 @@ static void vortex_spdif_init(vortex_t * vortex, int spdif_sr, int spdif_mode)
                        else
                                edi = 0x1ffff;
                } else {
-                       i = edi = 0x800;
+                       edi = 0x800;
                }
                /* this_04 and this_08 are the CASp4Src's (samplerate converters) */
                vortex_src_setupchannel(vortex, this_04, edi, 0, 1,