summaryrefslogtreecommitdiff
path: root/scripts/kconfig/conf.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-01-17 20:43:02 +0300
committerJason A. Donenfeld <Jason@zx2c4.com>2022-01-18 15:03:56 +0300
commita254a0e4093fce8c832414a83940736067eed515 (patch)
treeaa031d332af951e2a787eb8b000f4629a00efcc8 /scripts/kconfig/conf.c
parent248045b8dea5a32ddc0aa44193d6bc70c4b9cd8e (diff)
downloadlinux-a254a0e4093fce8c832414a83940736067eed515.tar.xz
random: simplify arithmetic function flow in account()
Now that have_bytes is never modified, we can simplify this function. First, we move the check for negative entropy_count to be first. That ensures that subsequent reads of this will be non-negative. Then, have_bytes and ibytes can be folded into their one use site in the min_t() function. Suggested-by: Dominik Brodowski <linux@dominikbrodowski.net> Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'scripts/kconfig/conf.c')
0 files changed, 0 insertions, 0 deletions