From: Colin Ian King Date: Thu, 13 May 2021 22:03:17 +0000 (+0200) Subject: media: meson: vdec: remove redundant initialization of variable reg_cur X-Git-Tag: accepted/tizen/unified/20230118.172025~6722^2~172 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c1e75f5baac5432749b90174a7a1f50a97327b2;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Martin Blumenstingl Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/meson/vdec/vdec_helpers.c b/drivers/staging/media/meson/vdec/vdec_helpers.c index 7f07a91..b9125c2 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;