summaryrefslogtreecommitdiffstats
path: root/fs/xfs/support/debug.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@sgi.com>2005-06-21 15:43:22 +1000
committerNathan Scott <nathans@sgi.com>2005-06-21 15:43:22 +1000
commitd130c14c0310edac5ea0c6327bef7e3715f9a083 (patch)
tree994ae017609f34e6af8e2ba6f432ed3d65ed13ce /fs/xfs/support/debug.h
parent7d795ca3442c7a562c45aeb7a7a808c79992a589 (diff)
downloadblackbird-op-linux-d130c14c0310edac5ea0c6327bef7e3715f9a083.tar.gz
blackbird-op-linux-d130c14c0310edac5ea0c6327bef7e3715f9a083.zip
[XFS] simplify ASSERT
SGI-PV: 938063 SGI-Modid: xfs-linux:xfs-kern:194416a Signed-off-by: Christoph Hellwig <hch@sgi.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/support/debug.h')
-rw-r--r--fs/xfs/support/debug.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/xfs/support/debug.h b/fs/xfs/support/debug.h
index 40b0f4c54d9e..c5b9365a7e2a 100644
--- a/fs/xfs/support/debug.h
+++ b/fs/xfs/support/debug.h
@@ -50,16 +50,11 @@ extern void cmn_err(int, char *, ...);
#endif
#ifdef DEBUG
-# ifdef lint
-# define ASSERT(EX) ((void)0) /* avoid "constant in conditional" babble */
-# else
-# define ASSERT(EX) ((!doass||(EX))?((void)0):assfail(#EX, __FILE__, __LINE__))
-# endif /* lint */
+# define ASSERT(EX) ((EX) ? ((void)0) : assfail(#EX, __FILE__, __LINE__))
#else
# define ASSERT(x) ((void)0)
#endif
-extern int doass; /* dynamically turn off asserts */
extern void assfail(char *, char *, int);
#ifdef DEBUG
extern unsigned long random(void);
OpenPOWER on IntegriCloud