aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTorsten Duwe <duwe@lst.de>2014-06-16 10:24:09 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-07-15 04:49:41 -0400
commit9dda727d37ff6ce1628dd2b8557ad011c49db377 (patch)
tree20af3337c2bbc664af468ad0518fec337a767e0b /drivers
parentrandom: use registers from interrupted code for CPU's w/o a cycle counter (diff)
downloadlinux-dev-9dda727d37ff6ce1628dd2b8557ad011c49db377.tar.xz
linux-dev-9dda727d37ff6ce1628dd2b8557ad011c49db377.zip
hw_random: fix sparse warning (NULL vs 0 for pointer)
Signed-off-by: Torsten Duwe <duwe@suse.de> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/hw_random/core.c2
1 files changed, 1 insertions, 1 deletions
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;
}