summaryrefslogtreecommitdiffstats
path: root/module/zfs/spa.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/spa.c')
-rw-r--r--module/zfs/spa.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/module/zfs/spa.c b/module/zfs/spa.c
index 57389a133..1ec801130 100644
--- a/module/zfs/spa.c
+++ b/module/zfs/spa.c
@@ -215,8 +215,8 @@ spa_prop_get(spa_t *spa, nvlist_t **nvp)
dp = spa_get_dsl(spa);
rw_enter(&dp->dp_config_rwlock, RW_READER);
- if (err = dsl_dataset_hold_obj(dp,
- za.za_first_integer, FTAG, &ds)) {
+ if ((err = dsl_dataset_hold_obj(dp,
+ za.za_first_integer, FTAG, &ds))) {
rw_exit(&dp->dp_config_rwlock);
break;
}
@@ -336,8 +336,8 @@ spa_prop_validate(spa_t *spa, nvlist_t *props)
break;
}
- if (error = dmu_objset_open(strval, DMU_OST_ZFS,
- DS_MODE_USER | DS_MODE_READONLY, &os))
+ if ((error = dmu_objset_open(strval,DMU_OST_ZFS,
+ DS_MODE_USER | DS_MODE_READONLY, &os)))
break;
/* We don't support gzip bootable datasets */
@@ -2369,7 +2369,7 @@ spa_check_rootconf(char *devpath, char *devid, nvlist_t **bestconf,
uint64_t txg;
int error;
- if (error = vdev_disk_read_rootlabel(devpath, devid, &config))
+ if ((error = vdev_disk_read_rootlabel(devpath, devid, &config)))
return (error);
VERIFY(nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_TXG, &txg) == 0);
@@ -2415,7 +2415,7 @@ spa_get_rootconf(char *devpath, char *devid, nvlist_t **bestconf)
if (devpath && ((tmp = strchr(devpath, ' ')) != NULL))
*tmp = '\0';
- if (error = spa_check_rootconf(devpath, devid, &conf, &txg)) {
+ if ((error = spa_check_rootconf(devpath, devid, &conf, &txg))) {
cmn_err(CE_NOTE, "error reading device label");
return (error);
}
@@ -2499,7 +2499,7 @@ spa_import_rootpool(char *devpath, char *devid)
* Get the vdev pathname and configuation from the most
* recently updated vdev (highest txg).
*/
- if (error = spa_get_rootconf(devpath, devid, &conf))
+ if ((error = spa_get_rootconf(devpath, devid, &conf)))
goto msg_out;
/*