[PATCH] hwrng: stm32: fix maybe uninitialized variable warning

Herbert Xu herbert at gondor.apana.org.au
Tue May 31 03:18:00 PDT 2016


On Thu, May 26, 2016 at 11:34:57AM +0200, Maxime Coquelin wrote:
> This patch fixes the following warning:
> drivers/char/hw_random/stm32-rng.c: In function 'stm32_rng_read':
> drivers/char/hw_random/stm32-rng.c:82:19: warning: 'sr' may be used
>                                         uninitialized in this function
> 
> Reported-by: Sudip Mukherjee <sudip.mukherjee at codethink.co.uk>
> Suggested-by: Arnd Bergmann <arnd at arndb.de>
> Cc: Daniel Thompson <daniel.thompson at linaro.org>
> Signed-off-by: Maxime Coquelin <mcoquelin.stm32 at gmail.com>

Applied.
-- 
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



More information about the linux-arm-kernel mailing list