media: amphion: fix UNUSED_VALUE issue reported by coverity
authorMing Qian <ming.qian@nxp.com>
Tue, 18 Jul 2023 09:50:12 +0000 (17:50 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 25 Jul 2023 07:31:49 +0000 (09:31 +0200)
commitcf6a06354989c41b536be8e094561ee16223cf1f
tree45cd2f5d0ac4acc35a1d5fc2d3e0ce9d5664b6ca
parentc224d0497a31ea2d173e1ea16af308945bff9037
media: amphion: fix UNUSED_VALUE issue reported by coverity

assign value '-EINVAL' to ret, but the stored value is overwritten
before it can be used

Fixes: 9f599f351e86 ("media: amphion: add vpu core driver")
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/amphion/vpu_cmds.c