From: Eric Sandeen Date: Mon, 14 Apr 2014 06:13:39 +0000 (+1000) Subject: xfs_quota: remove impossible tests in printpath X-Git-Tag: v3.2.0-rc1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d473f44580772cfdf495ba6a912a9a06e5a6a88;p=thirdparty%2Fxfsprogs-dev.git xfs_quota: remove impossible tests in printpath 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 Reviewed-by: Brian Foster Signed-off-by: Dave Chinner --- diff --git a/quota/path.c b/quota/path.c index e9a683484..47fdd935b 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)