aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/random
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2015-07-19 18:07:35 +0000
committerMark Murray <markm@FreeBSD.org>2015-07-19 18:07:35 +0000
commiteda4aaeb3fa237a1a4d8ca976b003513989e0118 (patch)
treefe1c9471f3c97e720d7692efb88087814f0f1621 /sys/dev/random
parent847adfb7b309db039b91591e545ed5c3f28a3416 (diff)
Notes
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/randomdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c
index 22f8da5ab6a7..5c20c5d53452 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) {