summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_dsp.c
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2018-11-08 15:07:56 +0200
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:52:11 +0800
commit4130b46451fdf6b9920cf8edea7069c5a86586cd (patch)
tree1393e8ac74863c70b1b948615ce0396b9e4b2556 /sound/soc/fsl/fsl_dsp.c
parent20a12565f1e2e8899ed046025a2da1dd6e6f4ed3 (diff)
MLK-20189-2: ASoC: dsp: Replace atomic_dec_return with atomic_dec
Return value is not used so better use atomic_dec. This also silences coverity warning CID3344689. Reviewed-by: S.j. Wang <shengjiu.wang@nxp.com> Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp.c')
-rw-r--r--sound/soc/fsl/fsl_dsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_dsp.c b/sound/soc/fsl/fsl_dsp.c
index f303a73df282..bd180d9356e6 100644
--- a/sound/soc/fsl/fsl_dsp.c
+++ b/sound/soc/fsl/fsl_dsp.c
@@ -502,7 +502,7 @@ static void dsp_mmap_close(struct vm_area_struct *vma)
pr_debug("xf_mmap_close: vma = %p, b = %p", vma, client);
/* ...decrement number of mapping */
- atomic_dec_return(&client->vm_use);
+ atomic_dec(&client->vm_use);
}
/* ...memory map operations */