summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/sst-dsp.c
diff options
context:
space:
mode:
authorMarkus Elfring2015-01-03 19:03:55 +0100
committerMark Brown2015-01-05 20:02:35 +0100
commit544c55c810a55dcfd2febbc33105642923be9192 (patch)
tree6f45f48f967e034628fab51b0f326730ffecc956 /sound/soc/intel/sst-dsp.c
parentASoC: Intel: Store the entry_point read from FW file (diff)
downloadkernel-qcow2-linux-544c55c810a55dcfd2febbc33105642923be9192.tar.gz
kernel-qcow2-linux-544c55c810a55dcfd2febbc33105642923be9192.tar.xz
kernel-qcow2-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.c3
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);