]> Git Repo - linux.git/commitdiff
hw_random: fix sparse warning (NULL vs 0 for pointer)
authorTorsten Duwe <[email protected]>
Mon, 16 Jun 2014 14:24:09 +0000 (10:24 -0400)
committerTheodore Ts'o <[email protected]>
Tue, 15 Jul 2014 08:49:41 +0000 (04:49 -0400)
Signed-off-by: Torsten Duwe <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
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;
 }
 
This page took 0.057501 seconds and 4 git commands to generate.