Skip to content

Commit 5f1479d

Browse files
dag-erlingbehlendorf
authored andcommitted
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
1 parent 506fe78 commit 5f1479d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/zfs/dbuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2701,7 +2701,7 @@ dmu_buf_will_clone(dmu_buf_t *db_fake, dmu_tx_t *tx)
27012701
*/
27022702
mutex_enter(&db->db_mtx);
27032703
VERIFY(!dbuf_undirty(db, tx));
2704-
ASSERT3P(dbuf_find_dirty_eq(db, tx->tx_txg), ==, NULL);
2704+
ASSERT0P(dbuf_find_dirty_eq(db, tx->tx_txg));
27052705
if (db->db_buf != NULL) {
27062706
arc_buf_destroy(db->db_buf, db);
27072707
db->db_buf = NULL;

0 commit comments

Comments
 (0)