Commit 8610b3a2 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Mauro Carvalho Chehab

media: st-delta: Remove redundant assignment to ret

Variable ret is being assigned a value however the assignment is
never read, so this redundant assignment can be removed.

Clean up the following clang-analyzer warning:

drivers/media/platform/sti/delta/delta-v4l2.c:1010:4: warning: Value
stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores].
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent c75f11fb
...@@ -1007,7 +1007,6 @@ static void delta_run_work(struct work_struct *work) ...@@ -1007,7 +1007,6 @@ static void delta_run_work(struct work_struct *work)
dev_err(delta->dev, dev_err(delta->dev,
"%s NULL decoded frame\n", "%s NULL decoded frame\n",
ctx->name); ctx->name);
ret = -EIO;
goto out; goto out;
} }
......
Markdown is supported
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