summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2020-08-09 18:04:23 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2020-08-21 07:47:49 +0300
commit3a61cdf43e670b99404436a5854aae993ef616ed (patch)
tree70f74889cfd2c08bf7baf1347b364545ce424b33 /drivers/char
parentabd9875497ba47e198fb565f11d5f332eeb08ab3 (diff)
downloadlinux-3a61cdf43e670b99404436a5854aae993ef616ed.tar.xz
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: Tom Rix <trix@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/hw_random/intel-rng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/intel-rng.c b/drivers/char/hw_random/intel-rng.c
index 9f205bd1acc0..eb7db27f9f19 100644
--- a/drivers/char/hw_random/intel-rng.c
+++ b/drivers/char/hw_random/intel-rng.c
@@ -330,7 +330,7 @@ static int __init mod_init(void)
int err = -ENODEV;
int i;
struct pci_dev *dev = NULL;
- void __iomem *mem = mem;
+ void __iomem *mem;
u8 hw_status;
struct intel_rng_hw *intel_rng_hw;