hw_random: fix sparse warning (NULL vs 0 for pointer)
authorTorsten Duwe <duwe@lst.de>
Mon, 16 Jun 2014 14:24:09 +0000 (10:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 15 Jul 2014 08:49:41 +0000 (04:49 -0400)
Signed-off-by: Torsten Duwe <duwe@suse.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/hw_random/core.c

index 3aaf97c774f179cd48d8a2573a64a4887857638a..349a3b852be991eeec75c147d8ed8d1ef7e66f5a 100644 (file)
@@ -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;
 }