Skip to content

Commit

Permalink
hw_random: fix sparse warning (NULL vs 0 for pointer)
Browse files Browse the repository at this point in the history
Signed-off-by: Torsten Duwe <duwe@suse.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
Torsten Duwe authored and Theodore Ts'o committed Jul 15, 2014
1 parent ee3e00e commit 9dda727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/hw_random/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9dda727

Please sign in to comment.