fscrypt: remove unnecessary check for non-logon key type
authorEric Biggers <ebiggers@google.com>
Mon, 30 Apr 2018 22:51:45 +0000 (15:51 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 Jun 2018 16:37:40 +0000 (09:37 -0700)
commitfc161f445010612271c8cfe0c3564c8c13fa1807
tree5d6022a25ca2e629c458c4f7f13b3654b1a9d88c
parentab8345a11caac9699dcc6ce5e7cd63ab5203215e
fscrypt: remove unnecessary check for non-logon key type

We're passing 'key_type_logon' to request_key(), so the found key is
guaranteed to be of type "logon".  Thus, there is no reason to check
later that the key is really a "logon" key.

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