OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4de9ad9
)
ecryptfs: remove check for if an array is NULL
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 31 Jul 2013 09:10:10 +0000
(12:10 +0300)
committer
Tyler Hicks
<tyhicks@canonical.com>
Fri, 6 Sep 2013 23:51:56 +0000
(16:51 -0700)
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>
fs/ecryptfs/crypto.c
patch
|
blob
|
history
diff --git
a/fs/ecryptfs/crypto.c
b/fs/ecryptfs/crypto.c
index
d107576
..
3bd35e2
100644
(file)
--- 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",