]> granicus.if.org Git - zfs/commitdiff
Use correct ASSERT3* variant
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 23 Feb 2011 23:03:30 +0000 (15:03 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 23 Feb 2011 23:03:30 +0000 (15:03 -0800)
ASSERT3P should be used instead of ASSERT3U when comparing
pointers.  Using ASSERT3U with the cast causes a compiler
warning for 32-bit builds which is fatal with --enable-debug.

module/zfs/zfs_vnops.c

index 821ececde35f59c0359e3024b79b015ec382c7b7..e58bce4728ba521a69dff3633ca3564de3255dd4 100644 (file)
@@ -2488,7 +2488,7 @@ top:
                SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zsb), NULL,
                    &new_mode, sizeof (new_mode));
                zp->z_mode = new_mode;
-               ASSERT3U((uintptr_t)aclp, !=, NULL);
+               ASSERT3P(aclp, !=, NULL);
                err = zfs_aclset_common(zp, aclp, cr, tx);
                ASSERT3U(err, ==, 0);
                if (zp->z_acl_cached)