From: Torsten Duwe Date: Mon, 16 Jun 2014 14:24:09 +0000 (-0400) Subject: hw_random: fix sparse warning (NULL vs 0 for pointer) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9dda727d37ff6ce1628dd2b8557ad011c49db377;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git hw_random: fix sparse warning (NULL vs 0 for pointer) Signed-off-by: Torsten Duwe Signed-off-by: Theodore Ts'o --- diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index 3aaf97c774f1..349a3b852be9 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/hw_random/core.c @@ -344,7 +344,7 @@ static int hwrng_fillfn(void *unused) add_hwgenerator_randomness((void *)rng_fillbuf, rc, (rc*current_quality)>>10); } - hwrng_fill = 0; + hwrng_fill = NULL; return 0; }