]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
random: simplify add_ptr logic
authorMatt Mackall <mpm@selenic.com>
Tue, 29 Apr 2008 08:03:04 +0000 (01:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:25 +0000 (08:06 -0700)
commit993ba2114c554c1561a018e5c63a771ec8e1c469
tree75df2f882845b12b698c305625f01dc6ef227147
parent6d38b827400d7c02bce391f90d044e4c57d5bc1e
random: simplify add_ptr logic

The add_ptr variable wasn't used in a sensible way, use only i instead.
i got reused later for a different purpose, use j instead.

While we're here, put tap0 first in the tap list and add a comment.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/random.c