summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-07-07 16:09:13 -0700
committerBrian Behlendorf <[email protected]>2009-07-07 16:09:13 -0700
commit04a83f2337c5113d4cc2304824c31b199646bbcc (patch)
tree8065f7fa1f83b843813222837e52d84cba6678b8
parentc75167c985d0e1d7ae981db0db291307e71513a5 (diff)
parent19f57f1ae4fb802388c64df33b6d57ddf7139563 (diff)
Merge branch 'gcc-branch' into refs/top-bases/zfs-branch
-rw-r--r--module/zfs/dmu_objset.c2
-rw-r--r--module/zfs/dsl_prop.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/dmu_objset.c b/module/zfs/dmu_objset.c
index ddcc6fdc5..d1cd9d530 100644
--- a/module/zfs/dmu_objset.c
+++ b/module/zfs/dmu_objset.c
@@ -1044,7 +1044,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 9bc122674..c26c3ff27 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.