From: Jan Kara Date: Wed, 8 Oct 2014 09:44:47 +0000 (+0200) Subject: xfs: Remove useless test X-Git-Tag: v5.15~16383^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a2fdd4a49d40017b3fca42beb2e1c8c0174a743;p=platform%2Fkernel%2Flinux-starfive.git xfs: Remove useless test Q_XQUOTARM is never passed to xfs_fs_set_xstate() so remove the test. Reviewed-by: Brian Foster Signed-off-by: Jan Kara --- diff --git a/fs/xfs/xfs_quotaops.c b/fs/xfs/xfs_quotaops.c index 7542bbe..8fcd20d 100644 --- a/fs/xfs/xfs_quotaops.c +++ b/fs/xfs/xfs_quotaops.c @@ -75,7 +75,7 @@ xfs_fs_set_xstate( if (sb->s_flags & MS_RDONLY) return -EROFS; - if (op != Q_XQUOTARM && !XFS_IS_QUOTA_RUNNING(mp)) + if (!XFS_IS_QUOTA_RUNNING(mp)) return -ENOSYS; if (uflags & FS_QUOTA_UDQ_ACCT)