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:
parent
847adfb7b3
commit
eda4aaeb3f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user