media: meson: vdec: remove redundant initialization of variable reg_cur
authorColin Ian King <colin.king@canonical.com>
Thu, 13 May 2021 22:03:17 +0000 (00:03 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 11:28:20 +0000 (13:28 +0200)
The variable reg_cur is being initialized with a value that is never
read, it is being updated later on. The assignment is redundant and
can be removed.

Addresses-Coverity: ("Unused value")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/meson/vdec/vdec_helpers.c

index 7f07a91..b9125c2 100644 (file)
@@ -183,7 +183,7 @@ int amvdec_set_canvases(struct amvdec_session *sess,
        u32 pixfmt = sess->pixfmt_cap;
        u32 width = ALIGN(sess->width, 32);
        u32 height = ALIGN(sess->height, 32);
-       u32 reg_cur = reg_base[0];
+       u32 reg_cur;
        u32 reg_num_cur = 0;
        u32 reg_base_cur = 0;
        int i = 0;