diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-12-08 23:01:35 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-12-15 11:34:34 +0000 |
commit | 7d7c80f3f335e5148e3f744534a0576e638cf581 (patch) | |
tree | a42955fb28aeeb59b0e2b16dce9a3493e47dbed7 | |
parent | ee9292e859bec2bd8b79b7d14bc352e9ea5d7257 (diff) | |
download | linux-stable-7d7c80f3f335e5148e3f744534a0576e638cf581.tar.gz linux-stable-7d7c80f3f335e5148e3f744534a0576e638cf581.tar.bz2 linux-stable-7d7c80f3f335e5148e3f744534a0576e638cf581.zip |
ASoC: Intel: sst: remove unused ‘ret_val’
In sst_media_close(), 'ret_val' is initialized and assigned as return value
of stream ops close but never used. So remove it.
ound/soc/intel/atom/sst-mfld-platform-pcm.c: In function ‘sst_media_close’:
sound/soc/intel/atom/sst-mfld-platform-pcm.c:360:6: warning: variable ‘ret_val’ set but not used [-Wunused-but-set-variable]
int ret_val = 0, str_id;
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/atom/sst-mfld-platform-pcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst-mfld-platform-pcm.c index f5a8050351b5..0fd7848fbe4a 100644 --- a/sound/soc/intel/atom/sst-mfld-platform-pcm.c +++ b/sound/soc/intel/atom/sst-mfld-platform-pcm.c @@ -357,14 +357,14 @@ static void sst_media_close(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) { struct sst_runtime_stream *stream; - int ret_val = 0, str_id; + int str_id; stream = substream->runtime->private_data; power_down_sst(stream); str_id = stream->stream_info.str_id; if (str_id) - ret_val = stream->ops->close(sst->dev, str_id); + stream->ops->close(sst->dev, str_id); module_put(sst->dev->driver->owner); kfree(stream); } |