]> asedeno.scripts.mit.edu Git - linux.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)
commit9919479b835cb1c92b75965f2e120395078a1c55
tree9a53724f12e5f694b54b6e25e9fc97927a92dda7
parent54222025f2fe8055fa88c39b5d9f68cbd76b1be0
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