Protect macro argument.

Requested by:	hselasky
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2017-01-19 15:06:18 +00:00
parent 270da772f5
commit 4960d0d453

View File

@ -307,9 +307,9 @@ LIST_HEAD(tmpfs_node_list, tmpfs_node);
#ifdef INVARIANTS
#define TMPFS_ASSERT_LOCKED(node) do { \
MPASS(node != NULL); \
MPASS(node->tn_vnode != NULL); \
ASSERT_VOP_LOCKED(node->tn_vnode, "tmpfs assert"); \
MPASS((node) != NULL); \
MPASS((node)->tn_vnode != NULL); \
ASSERT_VOP_LOCKED((node)->tn_vnode, "tmpfs assert"); \
} while (0)
#else
#define TMPFS_ASSERT_LOCKED(node) (void)0