aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <[email protected]>2023-08-30 17:13:10 +0200
committerTony Hutter <[email protected]>2024-04-29 13:50:05 -0700
commit5972bb856c1e84be582c54dd0ff1559ee4dfa068 (patch)
treedd01e3585c5319e0cbbb27ac614fb111ce31f166
parentef3fea63eb22ed07d941625d6893967d59fe179c (diff)
Use ASSERT0P() to check that a pointer is NULL.
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Kay Pedersen <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Dag-Erling Smørgrav <[email protected]> Closes #15225
-rw-r--r--module/zfs/dbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c
index a94ba5956..8bd9dd9a8 100644
--- a/module/zfs/dbuf.c
+++ b/module/zfs/dbuf.c
@@ -2701,7 +2701,7 @@ dmu_buf_will_clone(dmu_buf_t *db_fake, dmu_tx_t *tx)
mutex_enter(&db->db_mtx);
DBUF_VERIFY(db);
VERIFY(!dbuf_undirty(db, tx));
- ASSERT3P(dbuf_find_dirty_eq(db, tx->tx_txg), ==, NULL);
+ ASSERT0P(dbuf_find_dirty_eq(db, tx->tx_txg));
if (db->db_buf != NULL) {
arc_buf_destroy(db->db_buf, db);
db->db_buf = NULL;