mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
media: amphion: fix UNUSED_VALUE issue reported by coverity
[ Upstream commitcf6a063549] assign value '-EINVAL' to ret, but the stored value is overwritten before it can be used Fixes:9f599f351e("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
60f6392bde
commit
932d84a8a8
@@ -315,7 +315,7 @@ static int vpu_session_send_cmd(struct vpu_inst *inst, u32 id, void *data)
|
||||
{
|
||||
unsigned long key;
|
||||
int sync = false;
|
||||
int ret = -EINVAL;
|
||||
int ret;
|
||||
|
||||
if (inst->id < 0)
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user