summaryrefslogtreecommitdiffstats
path: root/module/zfs/dmu_object.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/dmu_object.c')
-rw-r--r--module/zfs/dmu_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/dmu_object.c b/module/zfs/dmu_object.c
index 14264ec30..38ce6746e 100644
--- a/module/zfs/dmu_object.c
+++ b/module/zfs/dmu_object.c
@@ -318,7 +318,7 @@ dmu_object_next(objset_t *os, uint64_t *objectp, boolean_t hole, uint64_t txg)
dmu_object_info_t doi;
error = dmu_object_info(os, i, &doi);
- if (error)
+ if (error != 0)
skip = 1;
else
skip = doi.doi_dnodesize >> DNODE_SHIFT;