Skip to content
Commit 51b74c09 authored by Hans Verkuil's avatar Hans Verkuil
Browse files

media: qcom: venus: fix incorrect return value



'pd' can be NULL, and in that case it shouldn't be passed to
PTR_ERR. Fixes a smatch warning:

drivers/media/platform/qcom/venus/pm_helpers.c:873 vcodec_domains_get() warn: passing zero to 'PTR_ERR'

Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
parent b925fb42
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment