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/linux Fix atomic_dec_and_test ...
details: https://anonhg.NetBSD.org/src/rev/49513f4fdb8f
branches: trunk
changeset: 329672:49513f4fdb8f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jun 03 14:59:30 2014 +0000
description:
Fix atomic_dec_and_test in <linux/atomic.h>: test 0, not -1.
diffstat:
sys/external/bsd/drm2/include/linux/atomic.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 42dadc38520a -r 49513f4fdb8f sys/external/bsd/drm2/include/linux/atomic.h
--- a/sys/external/bsd/drm2/include/linux/atomic.h Tue Jun 03 14:42:41 2014 +0000
+++ b/sys/external/bsd/drm2/include/linux/atomic.h Tue Jun 03 14:59:30 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic.h,v 1.3 2014/04/01 15:28:52 riastradh Exp $ */
+/* $NetBSD: atomic.h,v 1.4 2014/06/03 14:59:30 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -104,7 +104,7 @@
static inline int
atomic_dec_and_test(atomic_t *atomic)
{
- return (-1 == (int)atomic_dec_uint_nv(&atomic->a_u.au_uint));
+ return (0 == (int)atomic_dec_uint_nv(&atomic->a_u.au_uint));
}
static inline void
Home |
Main Index |
Thread Index |
Old Index