aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/sa.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/sa.c')
-rw-r--r--module/zfs/sa.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/module/zfs/sa.c b/module/zfs/sa.c
index 1263d37ab..25b4da9f8 100644
--- a/module/zfs/sa.c
+++ b/module/zfs/sa.c
@@ -1730,10 +1730,8 @@ sa_modify_attrs(sa_handle_t *hdl, sa_attr_type_t newattr,
if (attr == newattr) {
if (length == 0)
++length_idx;
- if (action == SA_REMOVE) {
- j++;
+ if (action == SA_REMOVE)
continue;
- }
ASSERT(length == 0);
ASSERT(action == SA_REPLACE);
SA_ADD_BULK_ATTR(attr_desc, j, attr,