]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_quota: remove impossible tests in printpath
authorEric Sandeen <sandeen@redhat.com>
Mon, 14 Apr 2014 06:13:39 +0000 (16:13 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Apr 2014 06:13:39 +0000 (16:13 +1000)
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@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
quota/path.c

index e9a683484d8608cc960716e522cf97c18783d6a6..47fdd935b86faa480c9fe97c5371a9220e380d6a 100644 (file)
@@ -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)