fscrypt: don't special-case EOPNOTSUPP from fscrypt_get_encryption_info()
authorEric Biggers <ebiggers@google.com>
Mon, 30 Apr 2018 22:51:41 +0000 (15:51 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 20 May 2018 20:21:02 +0000 (16:21 -0400)
commit17bfde6097bd5c6b8eb7474f8f75a4b95d091558
tree8e07917b4b68c7a91a4be193fb69946d96b4eff1
parent101c97a3e616f877a51201a4ff6ec2358b9a88d0
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>
fs/crypto/fname.c