lkml.org 
[lkml]   [2020]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] hwrng : cleanup initialization
On Sun, Aug 09, 2020 at 08:04:23AM -0700, trix@redhat.com wrote:
> From: Tom Rix <trix@redhat.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@redhat.com>
> ---
> drivers/char/hw_random/intel-rng.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

\
 
 \ /
  Last update: 2020-08-21 10:09    [W:2.463 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site