Skip to content

Commit 9dda727

Browse files
Torsten Duwetytso
authored andcommitted
hw_random: fix sparse warning (NULL vs 0 for pointer)
Signed-off-by: Torsten Duwe <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]>
1 parent ee3e00e commit 9dda727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/char/hw_random/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ static int hwrng_fillfn(void *unused)
344344
add_hwgenerator_randomness((void *)rng_fillbuf, rc,
345345
(rc*current_quality)>>10);
346346
}
347-
hwrng_fill = 0;
347+
hwrng_fill = NULL;
348348
return 0;
349349
}
350350

0 commit comments

Comments
 (0)