fscrypt: remove unnecessary NULL check when allocating skcipher
authorEric Biggers <ebiggers@google.com>
Mon, 30 Apr 2018 22:51:37 +0000 (15:51 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 Jun 2018 16:37:40 +0000 (09:37 -0700)
commit6e4e39cc922cac0951bc5a75df6163acc5bacbe6
tree32dc234114da3e79ee415650f1c05fd6cb50144f
parent42b3feb2bd76664cf7553054d7c56f1bfe889279
fscrypt: remove unnecessary NULL check when allocating skcipher

crypto_alloc_skcipher() returns an ERR_PTR() on failure, not NULL.
Remove the unnecessary check for NULL.

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