diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2015-01-03 19:03:55 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-05 19:02:35 +0000 |
commit | 544c55c810a55dcfd2febbc33105642923be9192 (patch) | |
tree | 6f45f48f967e034628fab51b0f326730ffecc956 /sound/soc/intel/sst-dsp.c | |
parent | 85b88a8dd0c758464f31a9758deb27b31c0d5de7 (diff) | |
download | blackbird-obmc-linux-544c55c810a55dcfd2febbc33105642923be9192.tar.gz blackbird-obmc-linux-544c55c810a55dcfd2febbc33105642923be9192.zip |
ASoC: Intel: Delete an unnecessary check before the function call "sst_dma_free"
The sst_dma_free() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/sst-dsp.c')
-rw-r--r-- | sound/soc/intel/sst-dsp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/intel/sst-dsp.c b/sound/soc/intel/sst-dsp.c index 86e410845670..64e94212d2d2 100644 --- a/sound/soc/intel/sst-dsp.c +++ b/sound/soc/intel/sst-dsp.c @@ -410,8 +410,7 @@ void sst_dsp_free(struct sst_dsp *sst) if (sst->ops->free) sst->ops->free(sst); - if (sst->dma) - sst_dma_free(sst->dma); + sst_dma_free(sst->dma); } EXPORT_SYMBOL_GPL(sst_dsp_free); |