OSDN Git Service

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)
commit9b33d2e526c53b0339ddba8b875bb8b8b3a11207
tree0ce303c909b86bc9165cdf7550ced1a5273499ca
parente718a3eb09ae491147ded7e2e923ba6de59f0b24
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>
sound/soc/codecs/cx2072x.c