projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85b88a8
)
ASoC: Intel: Delete an unnecessary check before the function call "sst_dma_free"
author
Markus Elfring
<elfring@users.sourceforge.net>
Sat, 3 Jan 2015 18:03:55 +0000
(19:03 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 5 Jan 2015 19:02:35 +0000
(19:02 +0000)
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>
sound/soc/intel/sst-dsp.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/intel/sst-dsp.c
b/sound/soc/intel/sst-dsp.c
index 86e41084567002ebb999dca591b598a7224690fe..64e94212d2d2b129ebeddf9f1e4e55ac24775826 100644
(file)
--- 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);