Skip to content

Commit

Permalink
Remove an unused variable
Browse files Browse the repository at this point in the history
Clang-16 detects this set-but-unused variable which is assigned and
incremented, but never referenced otherwise.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Brooks Davis <brooks.davis@sri.com>
Closes openzfs#14125
  • Loading branch information
brooksdavis authored and tonyhutter committed Nov 22, 2022
1 parent 4e355c8 commit 94af3a3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions module/zfs/zfs_fm.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ void
zfs_ereport_clear(spa_t *spa, vdev_t *vd)
{
uint64_t vdev_guid, pool_guid;
int cnt = 0;

ASSERT(vd != NULL || spa != NULL);
if (vd == NULL) {
Expand All @@ -277,7 +276,6 @@ zfs_ereport_clear(spa_t *spa, vdev_t *vd)
avl_remove(&recent_events_tree, entry);
list_remove(&recent_events_list, entry);
kmem_free(entry, sizeof (*entry));
cnt++;
}
}

Expand Down

0 comments on commit 94af3a3

Please sign in to comment.