Fix some untidy logic. I committed the wrong local fix; please pass the pointy hat.

Approved by:        so (/dev/random blanket)
This commit is contained in:
Mark Murray 2015-07-19 18:07:35 +00:00
parent 847adfb7b3
commit eda4aaeb3f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285700

View File

@ -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) {