xfs
[Top] [All Lists]

[PATCH 11/14] xfs_quota: remove impossible tests in printpath

To: xfs@xxxxxxxxxxx
Subject: [PATCH 11/14] xfs_quota: remove impossible tests in printpath
From: Eric Sandeen <sandeen@xxxxxxxxxx>
Date: Tue, 8 Apr 2014 18:25:01 -0500
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1396999504-13769-1-git-send-email-sandeen@xxxxxxxxxx>
References: <1396999504-13769-1-git-send-email-sandeen@xxxxxxxxxx>
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@xxxxxxxxxx>
---
 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

<Prev in Thread] Current Thread [Next in Thread>