diff --git a/module/zfs/metaslab.c b/module/zfs/metaslab.c index 3c32d6f051e8..c624833bc981 100644 --- a/module/zfs/metaslab.c +++ b/module/zfs/metaslab.c @@ -5131,8 +5131,7 @@ metaslab_alloc_dva(spa_t *spa, metaslab_class_t *mc, uint64_t psize, if (vd != NULL && vd->vdev_mg != NULL) { mg = vdev_get_mg(vd, mc); - if (flags & METASLAB_HINTBP_AVOID && - mg->mg_next != NULL) + if (flags & METASLAB_HINTBP_AVOID) mg = mg->mg_next; } else { mg = mca->mca_rotor;