diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-05-24 22:44:19 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-28 15:50:42 +0100 |
commit | 9b33d2e526c53b0339ddba8b875bb8b8b3a11207 (patch) | |
tree | 0ce303c909b86bc9165cdf7550ced1a5273499ca | |
parent | e718a3eb09ae491147ded7e2e923ba6de59f0b24 (diff) |
ASoC: cx2072x: remove redundant assignment to pulse_len
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>
-rw-r--r-- | sound/soc/codecs/cx2072x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cx2072x.c b/sound/soc/codecs/cx2072x.c index 23d2b25fe04c..c11a585bbf70 100644 --- a/sound/soc/codecs/cx2072x.c +++ b/sound/soc/codecs/cx2072x.c @@ -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; |