Message ID | 1621246160-59374-1-git-send-email-jiapeng.chong@linux.alibaba.com |
---|---|
State | Accepted |
Commit | 8610b3a2abfd0a043df91ac2754a406d7d42b207 |
Headers | show |
Series | media: st-delta: Remove redundant assignment to ret | expand |
diff --git a/drivers/media/platform/sti/delta/delta-v4l2.c b/drivers/media/platform/sti/delta/delta-v4l2.c index 064a00a..c887a31 100644 --- a/drivers/media/platform/sti/delta/delta-v4l2.c +++ b/drivers/media/platform/sti/delta/delta-v4l2.c @@ -1007,7 +1007,6 @@ static void delta_run_work(struct work_struct *work) dev_err(delta->dev, "%s NULL decoded frame\n", ctx->name); - ret = -EIO; goto out; }
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: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> --- drivers/media/platform/sti/delta/delta-v4l2.c | 1 - 1 file changed, 1 deletion(-)