Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6cbd6a4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Tyler Hicks
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTyler Hicks <tyhicks@canonical.com>
parent 4de9ad9b
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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",