disk_quotas: style fix
authorUri Simchoni <uri@samba.org>
Thu, 21 Jan 2016 19:09:12 +0000 (21:09 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 26 Jan 2016 14:58:12 +0000 (15:58 +0100)
Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/quotas.c

index cbdec6b4996e97fd941bad08cbd57c2c333bcbe4..8e41416892998d7c84b1742469687d376b42d81b 100644 (file)
@@ -712,8 +712,9 @@ bool disk_quotas(connection_struct *conn, const char *path, uint64_t *bsize,
        } else if (D.softlimit==0 && D.hardlimit==0) {
                goto try_group_quota;
        } else {
-               if (D.softlimit == 0)
+               if (D.softlimit == 0) {
                        D.softlimit = D.hardlimit;
+               }
                *dfree = D.softlimit - D.curblocks;
                *dsize = D.softlimit;
        }
@@ -750,8 +751,9 @@ try_group_quota:
        } else if (D.softlimit==0 && D.hardlimit==0) {
                return False;
        } else {
-               if (D.softlimit == 0)
+               if (D.softlimit == 0) {
                        D.softlimit = D.hardlimit;
+               }
                *dfree = D.softlimit - D.curblocks;
                *dsize = D.softlimit;
        }