diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-05-14 00:03:17 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-06-02 13:28:20 +0200 |
commit | 2c1e75f5baac5432749b90174a7a1f50a97327b2 (patch) | |
tree | 2159c653be232d701be4fc07227ecce487c22636 /drivers/staging/media/meson | |
parent | 4c6178f31e7d33c87f9f046e3bcbaa15a1802ff9 (diff) | |
download | linux-stable-2c1e75f5baac5432749b90174a7a1f50a97327b2.tar.gz linux-stable-2c1e75f5baac5432749b90174a7a1f50a97327b2.tar.bz2 linux-stable-2c1e75f5baac5432749b90174a7a1f50a97327b2.zip |
media: meson: vdec: remove redundant initialization of variable reg_cur
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>
Diffstat (limited to 'drivers/staging/media/meson')
-rw-r--r-- | drivers/staging/media/meson/vdec/vdec_helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/meson/vdec/vdec_helpers.c b/drivers/staging/media/meson/vdec/vdec_helpers.c index 7f07a9175815..b9125c295d1d 100644 --- a/drivers/staging/media/meson/vdec/vdec_helpers.c +++ b/drivers/staging/media/meson/vdec/vdec_helpers.c @@ -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; |