From: Brian Behlendorf Date: Wed, 8 Jul 2009 16:05:37 +0000 (-0700) Subject: Resolve a 2 new cases of for loop variable declared in for() X-Git-Tag: zfs-0.4.5~49^2^2^2^2^2^2^2^2~1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58f5e63293535d543ec9f51a4cd43227a2001dff;p=zfs Resolve a 2 new cases of for loop variable declared in for() --- diff --git a/module/zfs/vdev_label.c b/module/zfs/vdev_label.c index b2f45d366..b858edef1 100644 --- a/module/zfs/vdev_label.c +++ b/module/zfs/vdev_label.c @@ -508,6 +508,7 @@ vdev_label_init(vdev_t *vd, uint64_t crtxg, vdev_labeltype_t reason) uint64_t spare_guid, l2cache_guid; int flags = ZIO_FLAG_CONFIG_WRITER | ZIO_FLAG_CANFAIL; int c, l, n; + vdev_t *pvd; ASSERT(spa_config_held(spa, SCL_ALL, RW_WRITER) == SCL_ALL);