From: Brian Behlendorf Date: Tue, 7 Jul 2009 23:01:13 +0000 (-0700) Subject: Add missing paranthesis for gcc. X-Git-Tag: zfs-0.4.5~52^2^2^2^2^2^2^2^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f80f59f955de1218d206829a56275afdb4c4824e;p=zfs Add missing paranthesis for gcc. --- diff --git a/module/zfs/dmu_objset.c b/module/zfs/dmu_objset.c index 7fd754d11..622cc4620 100644 --- a/module/zfs/dmu_objset.c +++ b/module/zfs/dmu_objset.c @@ -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)); diff --git a/module/zfs/dsl_prop.c b/module/zfs/dsl_prop.c index 664ccff45..7efef987d 100644 --- a/module/zfs/dsl_prop.c +++ b/module/zfs/dsl_prop.c @@ -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.