Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Torsten Duwe and committed by
Theodore Ts'o
9dda727d ee3e00e9

+1 -1
+1 -1
drivers/char/hw_random/core.c
··· 344 344 add_hwgenerator_randomness((void *)rng_fillbuf, rc, 345 345 (rc*current_quality)>>10); 346 346 } 347 - hwrng_fill = 0; 347 + hwrng_fill = NULL; 348 348 return 0; 349 349 } 350 350