]> granicus.if.org Git - zfs/commitdiff
Fix c90 compliance issue
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 9 Jan 2009 22:15:56 +0000 (14:15 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 9 Jan 2009 22:15:56 +0000 (14:15 -0800)
module/zfs/zio.c

index 534b77db051df1dea8e48e8fd39e64c16906a87e..32fd505e3304d8a50c19de63ea3f80689c94b5e3 100644 (file)
@@ -850,8 +850,8 @@ zio_write_bp_init(zio_t *zio)
         */
        if (bp->blk_birth == zio->io_txg && BP_GET_PSIZE(bp) == csize &&
            pass > SYNC_PASS_REWRITE) {
-               ASSERT(csize != 0);
                uint32_t gang_stages = zio->io_pipeline & ZIO_GANG_STAGES;
+               ASSERT(csize != 0);
                zio->io_pipeline = ZIO_REWRITE_PIPELINE | gang_stages;
                zio->io_flags |= ZIO_FLAG_IO_REWRITE;
        } else {