From 462f86436500057837ca8029fc193a3114ba217f Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 11 Mar 2009 22:38:16 -0700 Subject: [PATCH] Check should be in ASSERT to minimize stack and prevent unused var. --- module/zfs/zio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/zfs/zio.c b/module/zfs/zio.c index 5c60b8c975..5de1d75a1f 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -1432,10 +1432,9 @@ zio_gang_tree_assemble_done(zio_t *zio) zio_t *lio = zio->io_logical; zio_gang_node_t *gn = zio->io_private; blkptr_t *bp = zio->io_bp; - zio_t *pio = zio_unique_parent(zio); int g; - ASSERT(pio == lio); + ASSERT(zio_unique_parent(zio) == lio); ASSERT(zio_walk_children(zio) == NULL); if (zio->io_error)