OSDN Git Service

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 19:21:27 +0000 (12:21 -0700)
commit7149dd4d39b54d3a59ecea7b2a95c842aa39a283
tree53cc929051e9f036ad999c073f74e2f9eb6dd4a7
parent56446c91422e938c60f19fcf36115cbaae737b0d
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