diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-07-31 05:10:10 -0400 |
|---|---|---|
| committer | Tyler Hicks <tyhicks@canonical.com> | 2013-09-06 19:51:56 -0400 |
| commit | e6cbd6a44d8e263073808da9f295e502d15dc3fe (patch) | |
| tree | e753acd33cfb3144a6d36fbff3a86203d749c3ab /fs/ecryptfs | |
| parent | 4de9ad9bc08b4953fc03336ad38908496e2f8826 (diff) | |
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>
Diffstat (limited to 'fs/ecryptfs')
| -rw-r--r-- | fs/ecryptfs/crypto.c | 4 |
1 files changed, 0 insertions, 4 deletions
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) | |||
| 609 | char *full_alg_name; | 609 | char *full_alg_name; |
| 610 | int rc = -EINVAL; | 610 | int rc = -EINVAL; |
| 611 | 611 | ||
| 612 | if (!crypt_stat->cipher) { | ||
| 613 | ecryptfs_printk(KERN_ERR, "No cipher specified\n"); | ||
| 614 | goto out; | ||
| 615 | } | ||
| 616 | ecryptfs_printk(KERN_DEBUG, | 612 | ecryptfs_printk(KERN_DEBUG, |
| 617 | "Initializing cipher [%s]; strlen = [%d]; " | 613 | "Initializing cipher [%s]; strlen = [%d]; " |
| 618 | "key_size_bits = [%zd]\n", | 614 | "key_size_bits = [%zd]\n", |
