ASoC: cx2072x: remove redundant assignment to pulse_len
authorColin Ian King <colin.king@canonical.com>
Fri, 24 May 2019 21:44:19 +0000 (22:44 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 28 May 2019 14:50:42 +0000 (15:50 +0100)
Variable pulse_len is being initialized to 1 however this value is
never read and pulse_len is being re-assigned later in a switch
statement.  Clean up the code by removing the redundant initialization.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cx2072x.c

index 23d2b25fe04c32c6dba866e9a9eec1b87c6a8827..c11a585bbf7049fc564da241ea29d600f0b8f254 100644 (file)
@@ -679,7 +679,7 @@ static int cx2072x_config_i2spcm(struct cx2072x_priv *cx2072x)
        int is_right_j = 0;
        int is_frame_inv = 0;
        int is_bclk_inv = 0;
-       int pulse_len = 1;
+       int pulse_len;
        int frame_len = cx2072x->frame_size;
        int sample_size = cx2072x->sample_size;
        int i2s_right_slot;