fscrypt: drop empty name check from fname_decrypt()
authorEric Biggers <ebiggers@google.com>
Mon, 30 Apr 2018 22:51:43 +0000 (15:51 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 Jun 2018 16:37:40 +0000 (09:37 -0700)
commit65702a6ef79b686b76f7c0cb21d0460bb33c75ba
treeb6cf5516efcb39d912fe112c08e332bbede1f32d
parent219e65410cae6cad0d61a059d0128005002875cf
fscrypt: drop empty name check from fname_decrypt()

fname_decrypt() is validating that the encrypted filename is nonempty.
However, earlier a stronger precondition was already enforced: the
encrypted filename must be at least 16 (FS_CRYPTO_BLOCK_SIZE) bytes.

Drop the redundant check for an empty filename.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/fname.c