The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=196cc005b197ab8bf5044c3fc457697986a14b39

commit 196cc005b197ab8bf5044c3fc457697986a14b39
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-07-25 21:37:55 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-07-27 16:17:28 +0000

    libthr/thread/thr_umtx.c: style _thr_ucond_wait()
    
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D58463
---
 lib/libthr/thread/thr_umtx.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/libthr/thread/thr_umtx.c b/lib/libthr/thread/thr_umtx.c
index bbc68d0e30c6..db63017a6a13 100644
--- a/lib/libthr/thread/thr_umtx.c
+++ b/lib/libthr/thread/thr_umtx.c
@@ -242,18 +242,18 @@ _thr_ucond_init(struct ucond *cv)
 
 int
 _thr_ucond_wait(struct ucond *cv, struct umutex *m,
-       const struct timespec *timeout, int flags)
+    const struct timespec *timeout, int flags)
 {
        struct pthread *curthread;
 
-       if (timeout && (timeout->tv_sec < 0 || (timeout->tv_sec == 0 &&
+       if (timeout != NULL && (timeout->tv_sec < 0 || (timeout->tv_sec == 0 &&
            timeout->tv_nsec <= 0))) {
                curthread = _get_curthread();
                _thr_umutex_unlock(m, TID(curthread));
                 return (ETIMEDOUT);
        }
        return (_umtx_op_err(cv, UMTX_OP_CV_WAIT, flags, m,
-           __DECONST(void*, timeout)));
+           __DECONST(void *, timeout)));
 }
  
 int

Reply via email to