From eda4aaeb3fa237a1a4d8ca976b003513989e0118 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Sun, 19 Jul 2015 18:07:35 +0000 Subject: [PATCH] Fix some untidy logic. I committed the wrong local fix; please pass the pointy hat. Approved by: so (/dev/random blanket) --- sys/dev/random/randomdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {