Skip to content

Commit

Permalink
Remove set but not used variable in ddt.c (#16522)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mcmilk authored Sep 10, 2024
1 parent 308f7c2 commit 1713aa7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions module/zfs/ddt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2609,7 +2609,7 @@ ddt_prune_walk(spa_t *spa, uint64_t cutoff, ddt_age_histo_t *histogram)
};
ddt_lightweight_entry_t ddlwe = {0};
int error;
int total = 0, valid = 0;
int valid = 0;
int candidates = 0;
uint64_t now = gethrestime_sec();
ddt_prune_info_t dpi;
Expand All @@ -2633,7 +2633,6 @@ ddt_prune_walk(spa_t *spa, uint64_t cutoff, ddt_age_histo_t *histogram)

if (spa_shutting_down(spa) || issig())
break;
total++;

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

0 comments on commit 1713aa7

Please sign in to comment.