]> granicus.if.org Git - zfs/commitdiff
Add missing paranthesis for gcc.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 7 Jul 2009 23:01:13 +0000 (16:01 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 7 Jul 2009 23:01:13 +0000 (16:01 -0700)
module/zfs/dmu_objset.c
module/zfs/dsl_prop.c

index 7fd754d11dc2879de8cdc814963197fa32d09e96..622cc4620589f0770a42ea8b0902bf525b9114b8 100644 (file)
@@ -1042,7 +1042,7 @@ dmu_objset_do_userquota_callbacks(objset_impl_t *os, dmu_tx_t *tx)
 
        ASSERT(list_head(list) == NULL || dmu_objset_userused_enabled(os));
 
-       while (dn = list_head(list)) {
+       while ((dn = list_head(list))) {
                dmu_object_type_t bonustype;
 
                ASSERT(!DMU_OBJECT_IS_SPECIAL(dn->dn_object));
index 664ccff45d4a783b41dd6d5941426b486ae81ade..7efef987de84b36704c321039f5d5cf4abcb2150 100644 (file)
@@ -510,7 +510,7 @@ dsl_props_set(const char *dsname, nvlist_t *nvl)
        nvpair_t *elem = NULL;
        int err;
 
-       if (err = dsl_dataset_hold(dsname, FTAG, &ds))
+       if ((err = dsl_dataset_hold(dsname, FTAG, &ds)))
                return (err);
        /*
         * Do these checks before the syncfunc, since it can't fail.