• G
    random: simplify loop in random_read · 12ff3a51
    Greg Price 提交于
    The loop condition never changes until just before a break, so we
    might as well write it as a constant.  Also since a996996d
    ("random: drop weird m_time/a_time manipulation") we don't do anything
    after the loop finishes, so the 'break's might as well return
    directly.  Some other simplifications.
    
    There should be no change in behavior introduced by this commit.
    Signed-off-by: NGreg Price <price@mit.edu>
    Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
    12ff3a51
random.c 50.4 KB