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 <dan.carpenter@oracle.com> Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
This commit is contained in:
parent
4de9ad9bc0
commit
e6cbd6a44d
1 changed files with 0 additions and 4 deletions
|
@ -609,10 +609,6 @@ int ecryptfs_init_crypt_ctx(struct ecryptfs_crypt_stat *crypt_stat)
|
||||||
char *full_alg_name;
|
char *full_alg_name;
|
||||||
int rc = -EINVAL;
|
int rc = -EINVAL;
|
||||||
|
|
||||||
if (!crypt_stat->cipher) {
|
|
||||||
ecryptfs_printk(KERN_ERR, "No cipher specified\n");
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
ecryptfs_printk(KERN_DEBUG,
|
ecryptfs_printk(KERN_DEBUG,
|
||||||
"Initializing cipher [%s]; strlen = [%d]; "
|
"Initializing cipher [%s]; strlen = [%d]; "
|
||||||
"key_size_bits = [%zd]\n",
|
"key_size_bits = [%zd]\n",
|
||||||
|
|
Loading…
Add table
Reference in a new issue