]> granicus.if.org Git - zfs/commit
Silence compile-time warning on unused variable
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 1 May 2018 18:15:54 +0000 (11:15 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 1 May 2018 18:15:54 +0000 (11:15 -0700)
commitd6133fc500ea8b4fdc1a51944cb17ea5e70f3137
tree2fefd59814620ed121957cc72b33d2bec8e87abe
parent85ce3f4fd114cf3c7a77feb07b397d43b90d11c7
Silence compile-time warning on unused variable

ASSERT3U() could be NOP which then leads to having unused pointer *spa.

metaslab.c: In function 'metaslab_condense':
metaslab.c:2075:9: warning: unused variable 'spa' [-Wunused-variable]
  spa_t *spa = msp->ms_group->mg_vd->vdev_spa;

Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>
Closes #7489
module/zfs/metaslab.c