summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorTorsten Duwe <duwe@lst.de>2014-06-16 18:24:09 +0400
committerTheodore Ts'o <tytso@mit.edu>2014-07-15 12:49:41 +0400
commit9dda727d37ff6ce1628dd2b8557ad011c49db377 (patch)
tree20af3337c2bbc664af468ad0518fec337a767e0b /drivers/char
parentee3e00e9e7101c80a2ff2d5672d4b486bf001b88 (diff)
downloadlinux-9dda727d37ff6ce1628dd2b8557ad011c49db377.tar.xz
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/char')
-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;
}