From: Greg Price Date: Fri, 29 Nov 2013 20:02:33 +0000 (-0500) Subject: random: simplify loop in random_read X-Git-Tag: v3.15-rc1~88^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12ff3a517ab92b5496c731a3c354caa1f16c569f;p=pandora-kernel.git random: simplify loop in random_read The loop condition never changes until just before a break, so we might as well write it as a constant. Also since a996996dd75a ("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: Greg Price Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed