projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c224d04
)
media: amphion: fix UNUSED_VALUE issue reported by coverity
author
Ming Qian
<ming.qian@nxp.com>
Tue, 18 Jul 2023 09:50:12 +0000
(17:50 +0800)
committer
Hans Verkuil
<hverkuil-cisco@xs4all.nl>
Tue, 25 Jul 2023 07:31:49 +0000
(09:31 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/media/platform/amphion/vpu_cmds.c
b/drivers/media/platform/amphion/vpu_cmds.c
index ef8c0eaaf66af424c90a6a46fb61401161108fc7..c2337812573ef0afbc53160930b32bcf81cf4cbc 100644
(file)
--- 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;