diff options
author | Brooks Davis <[email protected]> | 2022-11-01 20:45:36 +0000 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2022-12-01 12:39:43 -0800 |
commit | 5f53a444b3c1326f5b0af026763bb68e70a581ad (patch) | |
tree | dfbf74513982a771b3742931bbab2d6e5559d117 /module | |
parent | 572bd18c1f6c5856750c9c426302d690f8c528d7 (diff) |
Remove an unused variable
Clang-16 detects this set-but-unused variable which is assigned and
incremented, but never referenced otherwise.
Reviewed-by: Matthew Ahrens <[email protected]>
Reviewed-by: Richard Yao <[email protected]>
Signed-off-by: Brooks Davis <[email protected]>
Closes #14125
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/zfs_fm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/module/zfs/zfs_fm.c b/module/zfs/zfs_fm.c index a05ff7330..b1c3f7a63 100644 --- a/module/zfs/zfs_fm.c +++ b/module/zfs/zfs_fm.c @@ -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) { @@ -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++; } } |