diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-05-25 20:32:04 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-04 15:10:31 +0100 |
commit | 190d9e0332ab43b28cbb1856fc73ed7fafbfad7c (patch) | |
tree | ca7198fa695b5070c1b5fb582d97f9a99359bcaf /sound/soc/codecs/cx2072x.c | |
parent | d6e65bb7ff0d360c4c5462c3d0b237f2a07e5312 (diff) | |
download | linux-190d9e0332ab43b28cbb1856fc73ed7fafbfad7c.tar.bz2 |
ASoC: cx2072x: remove set but not used variable 'is_right_j '
Fixes gcc '-Wunused-but-set-variable' warning:
sound/soc/codecs/cx2072x.c: In function cx2072x_config_i2spcm:
sound/soc/codecs/cx2072x.c:679:6: warning: variable is_right_j set but not used [-Wunused-but-set-variable]
It's never used and can be removed.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cx2072x.c')
-rw-r--r-- | sound/soc/codecs/cx2072x.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/cx2072x.c b/sound/soc/codecs/cx2072x.c index 8b0830854bb3..f2cb35a50726 100644 --- a/sound/soc/codecs/cx2072x.c +++ b/sound/soc/codecs/cx2072x.c @@ -676,7 +676,6 @@ static int cx2072x_config_i2spcm(struct cx2072x_priv *cx2072x) unsigned int bclk_rate = 0; int is_i2s = 0; int has_one_bit_delay = 0; - int is_right_j = 0; int is_frame_inv = 0; int is_bclk_inv = 0; int pulse_len; @@ -740,7 +739,6 @@ static int cx2072x_config_i2spcm(struct cx2072x_priv *cx2072x) case SND_SOC_DAIFMT_RIGHT_J: is_i2s = 1; - is_right_j = 1; pulse_len = frame_len / 2; break; |