diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2015-01-03 13:03:55 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-05 14:02:35 -0500 |
commit | 544c55c810a55dcfd2febbc33105642923be9192 (patch) | |
tree | 6f45f48f967e034628fab51b0f326730ffecc956 /sound/soc/intel | |
parent | 85b88a8dd0c758464f31a9758deb27b31c0d5de7 (diff) |
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')
-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) | |||
410 | if (sst->ops->free) | 410 | if (sst->ops->free) |
411 | sst->ops->free(sst); | 411 | sst->ops->free(sst); |
412 | 412 | ||
413 | if (sst->dma) | 413 | sst_dma_free(sst->dma); |
414 | sst_dma_free(sst->dma); | ||
415 | } | 414 | } |
416 | EXPORT_SYMBOL_GPL(sst_dsp_free); | 415 | EXPORT_SYMBOL_GPL(sst_dsp_free); |
417 | 416 | ||