[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200821075814.GL25143@gondor.apana.org.au>
Date: Fri, 21 Aug 2020 17:58:14 +1000
From: Herbert Xu <herbert@...dor.apana.org.au>
To: trix@...hat.com
Cc: mpm@...enic.com, arnd@...db.de, gregkh@...uxfoundation.org,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] hwrng : cleanup initialization
On Sun, Aug 09, 2020 at 08:04:23AM -0700, trix@...hat.com wrote:
> From: Tom Rix <trix@...hat.com>
>
> clang static analysis reports this problem
>
> intel-rng.c:333:2: warning: Assigned value is garbage or undefined
> void __iomem *mem = mem;
> ^~~~~~~~~~~~~~~~~ ~~~
>
> Because mem is assigned before it is used, this is not
> a real problem. But the initialization is strange and not
> needed, so remove it.
>
> Signed-off-by: Tom Rix <trix@...hat.com>
> ---
> drivers/char/hw_random/intel-rng.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists