LFSR: Do not ignore returning the seed
authorAlex Pyrgiotis <apyrgio@grnet.gr>
Tue, 27 Aug 2013 16:58:34 +0000 (10:58 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Aug 2013 16:58:34 +0000 (10:58 -0600)
commitd56036a40edce5619d6e9346b1e9d34822ab1437
tree11b9fe19ea78cfcba579d06e073ee40335bcb223
parentca45881f9da7a3540da2cf216c3ac318c17980d0
LFSR: Do not ignore returning the seed

Fix a situation where we would spin prematurely and would hop over the
seed value.

Also, add some more comments to the code.

Signed-off-by: Alex Pyrgiotis <apyrgio@grnet.gr>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/lfsr.c