[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAG3jFyugksy60Sgjg5U+E4ZGEH3mNpZmLJB_aZ=uncb7kg7zAA@mail.gmail.com>
Date: Tue, 1 Mar 2022 14:10:44 +0100
From: Robert Foss <robert.foss@...aro.org>
To: Souptick Joarder <jrdr.linux@...il.com>
Cc: todor.too@...il.com, agross@...nel.org, bjorn.andersson@...aro.org,
mchehab@...nel.org, nathan@...nel.org, ndesaulniers@...gle.com,
linux-media@...r.kernel.org, linux-arm-msm@...r.kernel.org,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] media: camss: Replace hard coded value with parameter
On Tue, 1 Mar 2022 at 07:05, Souptick Joarder <jrdr.linux@...il.com> wrote:
>
> From: "Souptick Joarder (HPE)" <jrdr.linux@...il.com>
>
> Kernel test robot reported below warning ->
> drivers/media/platform/qcom/camss/camss-csid-gen2.c:407:3:
> warning: Value stored to 'val' is never read
> [clang-analyzer-deadcode.DeadStores]
>
> Replace hard coded value with val.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Signed-off-by: Souptick Joarder (HPE) <jrdr.linux@...il.com>
> ---
> drivers/media/platform/qcom/camss/camss-csid-gen2.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/qcom/camss/camss-csid-gen2.c b/drivers/media/platform/qcom/camss/camss-csid-gen2.c
> index abbfbf448893..2031bde13a93 100644
> --- a/drivers/media/platform/qcom/camss/camss-csid-gen2.c
> +++ b/drivers/media/platform/qcom/camss/camss-csid-gen2.c
> @@ -405,7 +405,7 @@ static void csid_configure_stream(struct csid_device *csid, u8 enable)
> writel_relaxed(val, csid->base + CSID_RDI_FRM_DROP_PERIOD(0));
>
> val = 0;
> - writel_relaxed(0, csid->base + CSID_RDI_FRM_DROP_PATTERN(0));
> + writel_relaxed(val, csid->base + CSID_RDI_FRM_DROP_PATTERN(0));
>
> val = 1;
> writel_relaxed(val, csid->base + CSID_RDI_IRQ_SUBSAMPLE_PERIOD(0));
> --
> 2.25.1
>
Reviewed-by: Robert Foss <robert.foss@...aro.org>
Powered by blists - more mailing lists