[PATCH 11/11] random: simplify accounting code

2013-11-07 Thread Greg Price
With this we handle "reserved" in just one place. As a bonus the code becomes less nested, and the "wakeup_write" flag variable becomes unnecessary. The variable "flags" was already unused. This code behaves identically to the previous version except in two pathological cases that don't occur.

[PATCH 11/11] random: simplify accounting code

2013-11-07 Thread Greg Price
With this we handle reserved in just one place. As a bonus the code becomes less nested, and the wakeup_write flag variable becomes unnecessary. The variable flags was already unused. This code behaves identically to the previous version except in two pathological cases that don't occur. If