Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Cosmetic: the '_type' argument to ATH_LOCK_IMPL a...



details:   https://anonhg.NetBSD.org/src/rev/f4d613e42ee3
branches:  trunk
changeset: 582904:f4d613e42ee3
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Sun Jul 10 19:07:39 2005 +0000

description:
Cosmetic: the '_type' argument to ATH_LOCK_IMPL and family is more
properly called '_obj'.

diffstat:

 sys/dev/ic/ath_netbsd.h |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (33 lines):

diff -r 843a01ff50cb -r f4d613e42ee3 sys/dev/ic/ath_netbsd.h
--- a/sys/dev/ic/ath_netbsd.h   Sun Jul 10 19:05:47 2005 +0000
+++ b/sys/dev/ic/ath_netbsd.h   Sun Jul 10 19:07:39 2005 +0000
@@ -54,20 +54,20 @@
        int ipl;
 };
 
-#define        ATH_LOCK_INIT_IMPL(_type, _member)              \
-       do { (_type)->_member.count = 0; } while (0)
-#define        ATH_LOCK_IMPL(_type, _member)                   \
+#define        ATH_LOCK_INIT_IMPL(_obj, _member)               \
+       do { (_obj)->_member.count = 0; } while (0)
+#define        ATH_LOCK_IMPL(_obj, _member)                    \
        do {                                            \
                int __s = splnet();                     \
-               if ((_type)->_member.count++ == 0)      \
-                       (_type)->_member.ipl = __s;     \
+               if ((_obj)->_member.count++ == 0)       \
+                       (_obj)->_member.ipl = __s;      \
        } while (0)
-#define        ATH_UNLOCK_IMPL(_type, _member)                                 \
+#define        ATH_UNLOCK_IMPL(_obj, _member)                                  \
        do {                                                            \
-               if (--(_type)->_member.count == 0)                      \
-                       splx((_type)->_member.ipl);                     \
+               if (--(_obj)->_member.count == 0)                       \
+                       splx((_obj)->_member.ipl);                      \
                else {                                                  \
-                       KASSERT((_type)->_member.count >= 0,            \
+                       KASSERT((_obj)->_member.count >= 0,             \
                            ("%s: no ATH_LOCK holders", __func__));     \
                }                                                       \
        } while (0)



Home | Main Index | Thread Index | Old Index