diff options
author | Eric Biggers <ebiggers@google.com> | 2018-04-30 15:51:41 -0700 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-05-20 16:21:02 -0400 |
commit | 17bfde6097bd5c6b8eb7474f8f75a4b95d091558 (patch) | |
tree | 8e07917b4b68c7a91a4be193fb69946d96b4eff1 /fs/crypto | |
parent | 101c97a3e616f877a51201a4ff6ec2358b9a88d0 (diff) | |
download | lwn-17bfde6097bd5c6b8eb7474f8f75a4b95d091558.tar.gz lwn-17bfde6097bd5c6b8eb7474f8f75a4b95d091558.zip |
fscrypt: don't special-case EOPNOTSUPP from fscrypt_get_encryption_info()
In fscrypt_setup_filename(), remove the unnecessary check for
fscrypt_get_encryption_info() returning EOPNOTSUPP. There's no reason
to handle this error differently from any other. I think there may have
been some confusion because the "notsupp" version of
fscrypt_get_encryption_info() returns EOPNOTSUPP -- but that's not
applicable from inside fs/crypto/.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/crypto')
-rw-r--r-- | fs/crypto/fname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/crypto/fname.c b/fs/crypto/fname.c index 3b5164b159cb..8088a606c0aa 100644 --- a/fs/crypto/fname.c +++ b/fs/crypto/fname.c @@ -335,7 +335,7 @@ int fscrypt_setup_filename(struct inode *dir, const struct qstr *iname, return 0; } ret = fscrypt_get_encryption_info(dir); - if (ret && ret != -EOPNOTSUPP) + if (ret) return ret; if (dir->i_crypt_info) { |