]> Git Repo - linux.git/commit
random: simplify accounting logic
authorGreg Price <[email protected]>
Fri, 29 Nov 2013 20:56:16 +0000 (15:56 -0500)
committerTheodore Ts'o <[email protected]>
Thu, 20 Mar 2014 02:18:51 +0000 (22:18 -0400)
commitee1de406ba6eb1e01f143fe3351e70cc772cc63e
tree9e2cd3196e964515cfcfbfcfe343201b42cfe6c9
parent19fa5be1d92be3112521145bf99f77007abf6b16
random: simplify accounting logic

This logic is exactly equivalent to the old logic, but it should
be easier to see what it's doing.

The equivalence depends on one fact from outside this function:
when 'r->limit' is false, 'reserved' is zero.  (Well, two facts;
the other is that 'reserved' is never negative.)

Cc: Jiri Kosina <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Signed-off-by: Greg Price <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
drivers/char/random.c
This page took 0.041715 seconds and 4 git commands to generate.