summaryrefslogtreecommitdiff
path: root/src/backend/utils/mmgr/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/utils/mmgr/slab.c')
-rw-r--r--src/backend/utils/mmgr/slab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/mmgr/slab.c b/src/backend/utils/mmgr/slab.c
index 0e35abcf5a0..0bb96187603 100644
--- a/src/backend/utils/mmgr/slab.c
+++ b/src/backend/utils/mmgr/slab.c
@@ -193,14 +193,14 @@ typedef struct SlabBlock
* SlabIsValid
* True iff set is a valid slab allocation set.
*/
-#define SlabIsValid(set) (PointerIsValid(set) && IsA(set, SlabContext))
+#define SlabIsValid(set) ((set) && IsA(set, SlabContext))
/*
* SlabBlockIsValid
* True iff block is a valid block of slab allocation set.
*/
#define SlabBlockIsValid(block) \
- (PointerIsValid(block) && SlabIsValid((block)->slab))
+ ((block) && SlabIsValid((block)->slab))
/*
* SlabBlocklistIndex