Message ID | 1488050273-7929-1-git-send-email-codrut.cristian.grosu@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c2dcce361ab7161e494e93f19a2945574c5a2cd7 |
Headers | show |
diff --git a/sound/soc/txx9/txx9aclc.c b/sound/soc/txx9/txx9aclc.c index 98fb989..7912bf0 100644 --- a/sound/soc/txx9/txx9aclc.c +++ b/sound/soc/txx9/txx9aclc.c @@ -392,6 +392,7 @@ static int txx9aclc_pcm_remove(struct snd_soc_platform *platform) for (i = 0; i < 2; i++) { struct txx9aclc_dmadata *dmadata = &dev->dmadata[i]; struct dma_chan *chan = dmadata->dma_chan; + if (chan) { dmadata->frag_count = -1; dmaengine_terminate_all(chan);
This was reported by checkpatch.pl Signed-off-by: Codrut GROSU <codrut.cristian.grosu@gmail.com> --- sound/soc/txx9/txx9aclc.c | 1 + 1 file changed, 1 insertion(+) 1.9.1