diff options
| author | joerg <joerg@NetBSD.org> | 2008-11-07 00:15:42 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2008-11-07 00:15:42 +0000 |
| commit | 220377354cdf62dfd007bdc8bd3eae24c81ffb76 (patch) | |
| tree | 6090067d12b0c486fcb4a8201a0ea93b5c0eab76 | |
| parent | ecbfc2933cd9bc4ef8693bb9db78315410832c9b (diff) | |
Don't use do {} while(0) for a single function call.
| -rw-r--r-- | sys/sys/fstrans.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/sys/fstrans.h b/sys/sys/fstrans.h index 82fe61d1f40..a8dab5d5489 100644 --- a/sys/sys/fstrans.h +++ b/sys/sys/fstrans.h @@ -1,4 +1,4 @@ -/* $NetBSD: fstrans.h,v 1.9 2008/04/28 20:24:10 martin Exp $ */ +/* $NetBSD: fstrans.h,v 1.10 2008/11/07 00:15:42 joerg Exp $ */ /*- * Copyright (c) 2007 The NetBSD Foundation, Inc. @@ -57,10 +57,7 @@ enum fstrans_state { }; void fstrans_init(void); -#define fstrans_start(mp, t) \ -do { \ - _fstrans_start((mp), (t), 1); \ -} while (/* CONSTCOND */ 0) +#define fstrans_start(mp, t) _fstrans_start((mp), (t), 1) #define fstrans_start_nowait(mp, t) _fstrans_start((mp), (t), 0) int _fstrans_start(struct mount *, enum fstrans_lock_type, int); void fstrans_done(struct mount *); |
