diff options
| author | Jason A. Donenfeld <[email protected]> | 2022-01-17 17:43:02 +0000 |
|---|---|---|
| committer | Jason A. Donenfeld <[email protected]> | 2022-01-18 12:03:56 +0000 |
| commit | a254a0e4093fce8c832414a83940736067eed515 (patch) | |
| tree | aa031d332af951e2a787eb8b000f4629a00efcc8 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | random: selectively clang-format where it makes sense (diff) | |
| download | kernel-a254a0e4093fce8c832414a83940736067eed515.tar.gz kernel-a254a0e4093fce8c832414a83940736067eed515.zip | |
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 <[email protected]>
Reviewed-by: Dominik Brodowski <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
