Skip to content

Commit 1713aa7

Browse files
authored
Remove set but not used variable in ddt.c (#16522)
module/zfs/ddt.c:2612:6: error: variable 'total' set but not used Signed-off-by: Tino Reichardt <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Tony Hutter <[email protected]>
1 parent 308f7c2 commit 1713aa7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

module/zfs/ddt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2609,7 +2609,7 @@ ddt_prune_walk(spa_t *spa, uint64_t cutoff, ddt_age_histo_t *histogram)
26092609
};
26102610
ddt_lightweight_entry_t ddlwe = {0};
26112611
int error;
2612-
int total = 0, valid = 0;
2612+
int valid = 0;
26132613
int candidates = 0;
26142614
uint64_t now = gethrestime_sec();
26152615
ddt_prune_info_t dpi;
@@ -2633,7 +2633,6 @@ ddt_prune_walk(spa_t *spa, uint64_t cutoff, ddt_age_histo_t *histogram)
26332633

26342634
if (spa_shutting_down(spa) || issig())
26352635
break;
2636-
total++;
26372636

26382637
ASSERT(ddt->ddt_flags & DDT_FLAG_FLAT);
26392638
ASSERT3U(ddlwe.ddlwe_phys.ddp_flat.ddp_refcnt, <=, 1);

0 commit comments

Comments
 (0)