Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/drm Return 0, not uninitialize...



details:   https://anonhg.NetBSD.org/src/rev/e84380283959
branches:  trunk
changeset: 331826:e84380283959
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Aug 26 00:48:29 2014 +0000

description:
Return 0, not uninitialized, if the condition is already true.

diffstat:

 sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r dcb3e8907f27 -r e84380283959 sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h
--- a/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h       Mon Aug 25 20:40:52 2014 +0000
+++ b/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h       Tue Aug 26 00:48:29 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_wait_netbsd.h,v 1.4 2014/07/16 20:59:58 riastradh Exp $    */
+/*     $NetBSD: drm_wait_netbsd.h,v 1.5 2014/08/26 00:48:29 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -177,6 +177,7 @@
        KASSERT(!cpu_intr_p());                                         \
        KASSERT(!cpu_softintr_p());                                     \
        KASSERT(!cold);                                                 \
+       (RET) = 0;                                                      \
        while (!(CONDITION)) {                                          \
                /* XXX errno NetBSD->Linux */                           \
                (RET) = -WAIT((Q), &(INTERLOCK)->sl_lock);              \



Home | Main Index | Thread Index | Old Index