]> granicus.if.org Git - zfs/commitdiff
Add suggested paranthesis.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 9 Jul 2009 21:59:10 +0000 (14:59 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 9 Jul 2009 21:59:10 +0000 (14:59 -0700)
module/zfs/zfs_ioctl.c

index e388654cf809ac843decfe531011bc68538072ad..50f6706262a9268f0af0d5fc4812ca7def986e22 100644 (file)
@@ -1606,8 +1606,8 @@ zfs_set_prop_nvlist(const char *name, nvlist_t *nvl)
                         */
                        if (zfs_prop_user(propname) &&
                            nvpair_type(elem) == DATA_TYPE_STRING) {
-                               if (error = zfs_secpolicy_write_perms(name,
-                                   ZFS_DELEG_PERM_USERPROP, CRED()))
+                               if ((error = zfs_secpolicy_write_perms(name,
+                                   ZFS_DELEG_PERM_USERPROP, CRED())))
                                        return (error);
                                continue;
                        }
@@ -1621,8 +1621,8 @@ zfs_set_prop_nvlist(const char *name, nvlist_t *nvl)
                                        perm = ZFS_DELEG_PERM_USERQUOTA;
                                else
                                        perm = ZFS_DELEG_PERM_GROUPQUOTA;
-                               if (error = zfs_secpolicy_write_perms(name,
-                                   perm, CRED()))
+                               if ((error = zfs_secpolicy_write_perms(name,
+                                   perm, CRED())))
                                        return (error);
                                continue;
                        }
@@ -1860,8 +1860,8 @@ zfs_check_userprops(char *fsname, nvlist_t *nvl)
                    nvpair_type(elem) != DATA_TYPE_STRING)
                        return (EINVAL);
 
-               if (error = zfs_secpolicy_write_perms(fsname,
-                   ZFS_DELEG_PERM_USERPROP, CRED()))
+               if ((error = zfs_secpolicy_write_perms(fsname,
+                   ZFS_DELEG_PERM_USERPROP, CRED())))
                        return (error);
 
                if (strlen(propname) >= ZAP_MAXNAMELEN)