[PATCH 11/14] xfs_quota: remove impossible tests in printpath
Eric Sandeen
sandeen at redhat.com
Tue Apr 8 18:25:01 CDT 2014
printpath() had some cut & paste tests of "c" - but
nothing had set it yet other than c=0, so testing it
is pointless. Just remove tests for non-zero "c"
until we might have set it to something interesting.
Signed-off-by: Eric Sandeen <sandeen at redhat.com>
---
quota/path.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/quota/path.c b/quota/path.c
index e9a6834..47fdd93 100644
--- a/quota/path.c
+++ b/quota/path.c
@@ -54,9 +54,9 @@ printpath(
c = 0;
printf(" (");
if (qstat.qs_flags & XFS_QUOTA_UDQ_ENFD)
- c = printf("%suquota", c ? ", " : "");
+ c = printf("uquota");
else if (qstat.qs_flags & XFS_QUOTA_UDQ_ACCT)
- c = printf("%suqnoenforce", c ? ", " : "");
+ c = printf("uqnoenforce");
if (qstat.qs_flags & XFS_QUOTA_GDQ_ENFD)
c = printf("%sgquota", c ? ", " : "");
else if (qstat.qs_flags & XFS_QUOTA_GDQ_ACCT)
--
1.7.1
More information about the xfs
mailing list