diff --git a/module/zfs/spa.c b/module/zfs/spa.c index 4b07d09ead..8a288b25f1 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -3235,7 +3235,7 @@ spa_vdev_remove_aux(nvlist_t *config, char *name, nvlist_t **dev, int count, nvlist_t *dev_to_remove) { nvlist_t **newdev = NULL; - int i; + int i, j; if (count > 1) newdev = kmem_alloc((count - 1) * sizeof (void *), KM_SLEEP);