diff options
author | markm <markm@FreeBSD.org> | 2015-07-19 18:07:35 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2015-07-19 18:07:35 +0000 |
commit | 17b5e5cd78af276adb289aebb5b4ea7e6314ab06 (patch) | |
tree | fe1c9471f3c97e720d7692efb88087814f0f1621 /sys/dev/random | |
parent | 1e6fb0ec0941434282ebd1d79e32855a94caa1d5 (diff) | |
download | FreeBSD-src-17b5e5cd78af276adb289aebb5b4ea7e6314ab06.zip FreeBSD-src-17b5e5cd78af276adb289aebb5b4ea7e6314ab06.tar.gz |
Fix some untidy logic. I committed the wrong local fix; please pass the pointy hat.
Approved by: so (/dev/random blanket)
Diffstat (limited to 'sys/dev/random')
-rw-r--r-- | sys/dev/random/randomdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index 22f8da5..5c20c5d 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/randomdev.c @@ -183,7 +183,7 @@ read_random_uio(struct uio *uio, bool nonblock) printf("random: %s unblock wait\n", __func__); spamcount = (spamcount + 1)%100; error = tsleep(&random_alg_context, PCATCH, "randseed", hz/10); - if ((error == ERESTART | error == EINTR)) + if (error == ERESTART || error == EINTR) break; } if (error == 0) { |