Commit 3a61cdf4 authored by Tom Rix's avatar Tom Rix Committed by Herbert Xu

hwrng: intel - cleanup initialization

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: default avatarTom Rix <trix@redhat.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent abd98754
...@@ -330,7 +330,7 @@ static int __init mod_init(void) ...@@ -330,7 +330,7 @@ static int __init mod_init(void)
int err = -ENODEV; int err = -ENODEV;
int i; int i;
struct pci_dev *dev = NULL; struct pci_dev *dev = NULL;
void __iomem *mem = mem; void __iomem *mem;
u8 hw_status; u8 hw_status;
struct intel_rng_hw *intel_rng_hw; struct intel_rng_hw *intel_rng_hw;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment