summaryrefslogtreecommitdiffstats
path: root/sound/soc/zte
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-08-01 00:32:34 +0200
committerMark Brown <broonie@kernel.org>2019-08-01 14:56:26 +0200
commitf24e41d3d04f326613d8a7ebecf72c3019826f71 (patch)
tree3a8497c6567196552ff88d4277524c3ced61ea5e /sound/soc/zte
parentASoC: SOF: no need to check return value of debugfs_create functions (diff)
downloadlinux-f24e41d3d04f326613d8a7ebecf72c3019826f71.tar.xz
linux-f24e41d3d04f326613d8a7ebecf72c3019826f71.zip
ASoC: zx-tdm: remove redundant assignment to ts_width on error return path
The value assigned to ts_width is never read on the error return path so the assignment is redundant and can be removed. Remove it. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20190731223234.16153-1-colin.king@canonical.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/zte')
-rw-r--r--sound/soc/zte/zx-tdm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/zte/zx-tdm.c b/sound/soc/zte/zx-tdm.c
index 5e877fe9ba7b..0e5a05b25a77 100644
--- a/sound/soc/zte/zx-tdm.c
+++ b/sound/soc/zte/zx-tdm.c
@@ -211,7 +211,6 @@ static int zx_tdm_hw_params(struct snd_pcm_substream *substream,
ts_width = 1;
break;
default:
- ts_width = 0;
dev_err(socdai->dev, "Unknown data format\n");
return -EINVAL;
}