Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp180746pxj; Fri, 14 May 2021 00:42:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjffnsKfK2g/qGy9t3XSfbufQpHkRkIkDXOWh1YSPK2y6M5zkFuXwOkVFSphLNg+8oA0CS X-Received: by 2002:a17:906:18b2:: with SMTP id c18mr14858780ejf.160.1620978158531; Fri, 14 May 2021 00:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620978158; cv=none; d=google.com; s=arc-20160816; b=cvbsbXCcooQCg42Gjq7y+6ZADn/0aqSrLBUTxJfPuI8C/e6DjFwVw4PLx7oTcYDQ4t 7to7gZssDtKZODle6RCebQEOg8lV2vUPmLY4fbXaZb3ZuzUxLUANMx+hjYtpPFiNeiAy xl7hciyMqvpFKFiw9pHVPyN/1dtdK4myXl3+dXH5oG2GWL5fpj5+GIdVnyn1V3RTEPwc SK/bQ4AfwmI89ffQGwvGWPk0HROlkJyU/mcWCRhLpDhxYtNf6rPeLEbNvIrxVkpPnnM9 vIoVUwyYYS2Chdo2TLfhGfUB3yNT4c3MNlbbbQfSampb9PO8eLEnXeaXnCB4AsjIvlqP 2c6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=fZ3Dp2/DoRtmwzbudsdCCvUwyZWAiB7dGnHQSo/CNn0=; b=gozcc4PKETxB13Xswd9lLM5PtSHU9Jjvkcw3b1iP8h6f6LNuRkHpTd053QNFcBo9q0 1Or/8DrZ61Rjnp8kt6jXd/isvQ8rDFGIxtqWsPQlf2gStHMutHK+xo5vC7boX1YL67q1 zsx3qvWq1P86RkC4rF5pkbQzFxG4nxIXg8xTWY+AIPm25log8lKghcnbhExVOrDXkzk9 1SKInuVkphIyzuRLFroz1NHWY5rLLt3eNRPO+tyyWHmnrFTa+L/OQlBEzRcWSC2AfHXe vdeWdULMaxOgF+9VmcIlTMLna7kMeY3vUO+/Ab7syAfiFE/4RqsFvG260caOuX1YWwyn LMEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kl9si5345701ejc.271.2021.05.14.00.42.15; Fri, 14 May 2021 00:42:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231206AbhEMWEb (ORCPT + 99 others); Thu, 13 May 2021 18:04:31 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:48328 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbhEMWEb (ORCPT ); Thu, 13 May 2021 18:04:31 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lhJQL-00078E-TH; Thu, 13 May 2021 22:03:17 +0000 From: Colin King To: Neil Armstrong , Mauro Carvalho Chehab , Greg Kroah-Hartman , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-media@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: meson: vdec: remove redundant initialization of variable reg_cur Date: Thu, 13 May 2021 23:03:17 +0100 Message-Id: <20210513220317.137090-1-colin.king@canonical.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King 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 --- drivers/staging/media/meson/vdec/vdec_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2