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)
commitfdd8823d6fc6c8e21249b86bb82bf10c0c709cd6
tree1128de57bca013516a3cdfc58cecca9ade73e9df
parent135bec763429ce92cc138171738362baa72d7dd9
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