xfs: Remove useless test
authorJan Kara <jack@suse.cz>
Wed, 8 Oct 2014 09:44:47 +0000 (11:44 +0200)
committerJan Kara <jack@suse.cz>
Wed, 21 Jan 2015 18:21:32 +0000 (19:21 +0100)
Q_XQUOTARM is never passed to xfs_fs_set_xstate() so remove the test.

Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/xfs/xfs_quotaops.c

index 7542bbeca6a12b18ae1162a51a8dd97f6c35790e..8fcd20dbf89aa8181e64d5098e1d44b36399df92 100644 (file)
@@ -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)