Messages in this thread | | | Date | Fri, 21 Aug 2020 17:58:14 +1000 | From | Herbert Xu <> | Subject | Re: [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
| |