From: Dan Carpenter Date: Wed, 31 Jul 2013 09:10:10 +0000 (+0300) Subject: ecryptfs: remove check for if an array is NULL X-Git-Tag: next-20130912~58^2~1 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-linux.git;a=commitdiff_plain;h=e6cbd6a44d8e263073808da9f295e502d15dc3fe ecryptfs: remove check for if an array is NULL It doesn't make sense to check if an array is NULL. The compiler just removes the check. Signed-off-by: Dan Carpenter Signed-off-by: Tyler Hicks --- diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c index d10757635b9c..3bd35e24b9e9 100644 --- a/fs/ecryptfs/crypto.c +++ b/fs/ecryptfs/crypto.c @@ -609,10 +609,6 @@ int ecryptfs_init_crypt_ctx(struct ecryptfs_crypt_stat *crypt_stat) char *full_alg_name; int rc = -EINVAL; - if (!crypt_stat->cipher) { - ecryptfs_printk(KERN_ERR, "No cipher specified\n"); - goto out; - } ecryptfs_printk(KERN_DEBUG, "Initializing cipher [%s]; strlen = [%d]; " "key_size_bits = [%zd]\n",