]> git.baikalelectronics.ru Git - kernel.git/commit
fscrypt: remove unnecessary NULL check when allocating skcipher
authorEric Biggers <ebiggers@google.com>
Mon, 30 Apr 2018 22:51:37 +0000 (15:51 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 20 May 2018 20:21:00 +0000 (16:21 -0400)
commit7b7cb76034d4830bf7f81920576ba8747c51b330
tree9a53724f12e5f694b54b6e25e9fc97927a92dda7
parentd638c34309bb5735d75579817ad5f19cc3c236a1
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