summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/dir.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-12-09 22:23:48 +0100
committerEric Biggers <ebiggers@google.com>2019-12-31 17:33:51 +0100
commit3b1ada55b905f306411f481df52b586cc8a407b8 (patch)
tree0094f32a9629ba5745aa68482804887466f48981 /fs/f2fs/dir.c
parentfscrypt: remove fscrypt_is_direct_key_policy() (diff)
downloadlinux-3b1ada55b905f306411f481df52b586cc8a407b8.tar.xz
linux-3b1ada55b905f306411f481df52b586cc8a407b8.zip
fscrypt: don't check for ENOKEY from fscrypt_get_encryption_info()
fscrypt_get_encryption_info() returns 0 if the encryption key is unavailable; it never returns ENOKEY. So remove checks for ENOKEY. Link: https://lore.kernel.org/r/20191209212348.243331-1-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/f2fs/dir.c')
-rw-r--r--fs/f2fs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index c967cacf979e..d9ad842945df 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -987,7 +987,7 @@ static int f2fs_readdir(struct file *file, struct dir_context *ctx)
if (IS_ENCRYPTED(inode)) {
err = fscrypt_get_encryption_info(inode);
- if (err && err != -ENOKEY)
+ if (err)
goto out;
err = fscrypt_fname_alloc_buffer(inode, F2FS_NAME_LEN, &fstr);