From 220377354cdf62dfd007bdc8bd3eae24c81ffb76 Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 7 Nov 2008 00:15:42 +0000 Subject: Don't use do {} while(0) for a single function call. --- sys/sys/fstrans.h | 7 ++----- 1 file 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 *); -- cgit