Author: markm
Date: Sun Jul 19 18:07:35 2015
New Revision: 285700
URL: https://svnweb.freebsd.org/changeset/base/285700

Log:
  Fix some untidy logic. I committed the wrong local fix; please pass the 
pointy hat.
  
  Approved by:        so (/dev/random blanket)

Modified:
  head/sys/dev/random/randomdev.c

Modified: head/sys/dev/random/randomdev.c
==============================================================================
--- head/sys/dev/random/randomdev.c     Sun Jul 19 18:07:25 2015        
(r285699)
+++ head/sys/dev/random/randomdev.c     Sun Jul 19 18:07:35 2015        
(r285700)
@@ -183,7 +183,7 @@ read_random_uio(struct uio *uio, bool no
                        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) {
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to