aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/platform/mtk-mdp
diff options
context:
space:
mode:
authorHans Verkuil2016-09-19 05:00:34 -0300
committerMauro Carvalho Chehab2016-10-21 12:09:53 -0200
commit669c6141ea78dff885b5bf025456c7dffb669a61 (patch)
tree7c3a95fca71f8ff2c4d5332369929e293bec2726 /drivers/media/platform/mtk-mdp
parenta0345caf7fafd68f42ff5c6fbe07bb0c90d4af29 (diff)
[media] mtk-mdp: fix double mutex_unlock
Fix smatch error: media-git/drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c:100 mtk_mdp_vpu_send_msg() error: double unlock 'mutex:&ctx->mdp_dev->vpulock' Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/mtk-mdp')
-rw-r--r--drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c b/drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c
index 39188e5e46d0..4893825aa5dd 100644
--- a/drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c
+++ b/drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c
@@ -92,11 +92,9 @@ static int mtk_mdp_vpu_send_msg(void *msg, int len, struct mtk_mdp_vpu *vpu,
mutex_lock(&ctx->mdp_dev->vpulock);
err = vpu_ipi_send(vpu->pdev, (enum ipi_id)id, msg, len);
- if (err) {
- mutex_unlock(&ctx->mdp_dev->vpulock);
+ if (err)
dev_err(&ctx->mdp_dev->pdev->dev,
"vpu_ipi_send fail status %d\n", err);
- }
mutex_unlock(&ctx->mdp_dev->vpulock);
return err;