aboutsummaryrefslogtreecommitdiff
path: root/sys/gnu/fs/xfs/FreeBSD/support/spin.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/gnu/fs/xfs/FreeBSD/support/spin.h')
-rw-r--r--sys/gnu/fs/xfs/FreeBSD/support/spin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/gnu/fs/xfs/FreeBSD/support/spin.h b/sys/gnu/fs/xfs/FreeBSD/support/spin.h
index 2b09be477959..e337e32f8f6d 100644
--- a/sys/gnu/fs/xfs/FreeBSD/support/spin.h
+++ b/sys/gnu/fs/xfs/FreeBSD/support/spin.h
@@ -33,10 +33,10 @@ static __inline register_t
mutex_spinlock(lock_t *lock) { mtx_lock(lock); return 0; }
#endif
-#define mutex_spinunlock(lock,s) \
+#define mutex_spinunlock(lock, s) \
do { \
spin_unlock(lock); \
- if (&s) {} \
+ if (s != 0) {} \
} while (0)
#endif /* __XFS_SUPPORT_SPIN_H__ */