mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 19:57:43 +03:00
Prefer VERIFY0(n) over VERIFY(n == 0)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: Rob Norris <robn@despairlabs.com> Sponsored-by: https://despairlabs.com/sponsor/ Closes #17591
This commit is contained in:
committed by
Brian Behlendorf
parent
2564308cb2
commit
c39e076f23
+2
-2
@@ -921,7 +921,7 @@ fzap_add_cd(zap_name_t *zn,
|
||||
|
||||
ASSERT(RW_LOCK_HELD(&zap->zap_rwlock));
|
||||
ASSERT(!zap->zap_ismicro);
|
||||
ASSERT(fzap_check(zn, integer_size, num_integers) == 0);
|
||||
ASSERT0(fzap_check(zn, integer_size, num_integers));
|
||||
|
||||
err = zap_deref_leaf(zap, zn->zn_hash, tx, RW_WRITER, &l);
|
||||
if (err != 0)
|
||||
@@ -1386,7 +1386,7 @@ again:
|
||||
}
|
||||
err = zap_entry_read_name(zap, &zeh,
|
||||
za->za_name_len, za->za_name);
|
||||
ASSERT(err == 0);
|
||||
ASSERT0(err);
|
||||
|
||||
za->za_normalization_conflict =
|
||||
zap_entry_normalization_conflict(&zeh,
|
||||
|
||||
Reference in New Issue
Block a user