From: Tom Rix Date: Sun, 9 Aug 2020 15:04:23 +0000 (-0700) Subject: hwrng: intel - cleanup initialization X-Git-Tag: v5.10.7~1291^2~185 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a61cdf43e670b99404436a5854aae993ef616ed;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/char/hw_random/intel-rng.c b/drivers/char/hw_random/intel-rng.c index 9f205bd..eb7db27 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;