Skip to content

Commit

Permalink
[media] media: venus: hfi: fix mutex unlock
Browse files Browse the repository at this point in the history
This fixed a warning when build driver with gcc7:

drivers/media/platform/qcom/venus/hfi.c:171
hfi_core_ping() warn: inconsistent returns 'mutex:&core->lock'.
  Locked on:   line 159
  Unlocked on: line 171

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
  • Loading branch information
Stanimir Varbanov authored and Mauro Carvalho Chehab committed Jun 20, 2017
1 parent 7035280 commit 8a5aebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/qcom/venus/hfi.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ int hfi_core_ping(struct venus_core *core)

ret = core->ops->core_ping(core, 0xbeef);
if (ret)
return ret;
goto unlock;

ret = wait_for_completion_timeout(&core->done, TIMEOUT);
if (!ret) {
Expand Down

0 comments on commit 8a5aebf

Please sign in to comment.