diff options
author | Ming Qian <[email protected]> | 2023-07-18 17:50:12 +0800 |
---|---|---|
committer | Hans Verkuil <[email protected]> | 2023-07-25 09:31:49 +0200 |
commit | cf6a06354989c41b536be8e094561ee16223cf1f (patch) | |
tree | 45cd2f5d0ac4acc35a1d5fc2d3e0ce9d5664b6ca | |
parent | c224d0497a31ea2d173e1ea16af308945bff9037 (diff) |
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 <[email protected]>
Signed-off-by: Ming Qian <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
-rw-r--r-- | drivers/media/platform/amphion/vpu_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/amphion/vpu_cmds.c b/drivers/media/platform/amphion/vpu_cmds.c index ef8c0eaaf66a..c2337812573e 100644 --- a/drivers/media/platform/amphion/vpu_cmds.c +++ b/drivers/media/platform/amphion/vpu_cmds.c @@ -313,7 +313,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; |