ubifs: remove redundant checks for encryption key
authorEric Biggers <ebiggers@google.com>
Mon, 19 Dec 2016 19:15:48 +0000 (11:15 -0800)
committerRichard Weinberger <richard@nod.at>
Tue, 17 Jan 2017 13:34:21 +0000 (14:34 +0100)
commit3d4b2fcbc980879a1385d5d7d17a4ffd0ee9aa1f
tree1128de57bca013516a3cdfc58cecca9ade73e9df
parenta75467d910135905de60b3af3f11b3693625781e
ubifs: remove redundant checks for encryption key

In several places, ubifs checked for an encryption key before creating a
file in an encrypted directory.  This was redundant with
fscrypt_setup_filename() or ubifs_new_inode(), and in the case of
ubifs_link() it broke linking to special files.  So remove the extra
checks.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/dir.c