From 5afcc6e08a78464d5947de7e20824b2bfafd8238 Mon Sep 17 00:00:00 2001 From: Torsten Duwe Date: Mon, 16 Jun 2014 10:24:09 -0400 Subject: [PATCH] hw_random: fix sparse warning (NULL vs 0 for pointer) Signed-off-by: Torsten Duwe Signed-off-by: Theodore Ts'o --- drivers/char/hw_random/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index 48b3c812b9ec..f5df8a33127c 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/hw_random/core.c @@ -335,7 +335,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; }