media: st-delta: Remove redundant assignment to ret
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Mon, 17 May 2021 10:09:20 +0000 (12:09 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 11:33:37 +0000 (13:33 +0200)
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>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/sti/delta/delta-v4l2.c

index 064a00a3084a0f3684b0babdf3494ef4993f6c5e..c887a31ebb54057444c8f78ca6f63a310718a128 100644 (file)
@@ -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;
                }