mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
eCryptfs: remove assignments in if-statements
Remove assignments in if-statements. Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
45eaab7967
commit
5dda6992a3
7 changed files with 89 additions and 64 deletions
|
@ -419,8 +419,9 @@ int ecryptfs_init_messaging(unsigned int transport)
|
|||
}
|
||||
mutex_init(&ecryptfs_daemon_id_hash_mux);
|
||||
mutex_lock(&ecryptfs_daemon_id_hash_mux);
|
||||
ecryptfs_hash_buckets = 0;
|
||||
while (ecryptfs_number_of_users >> ++ecryptfs_hash_buckets);
|
||||
ecryptfs_hash_buckets = 1;
|
||||
while (ecryptfs_number_of_users >> ecryptfs_hash_buckets)
|
||||
ecryptfs_hash_buckets++;
|
||||
ecryptfs_daemon_id_hash = kmalloc(sizeof(struct hlist_head)
|
||||
* ecryptfs_hash_buckets, GFP_KERNEL);
|
||||
if (!ecryptfs_daemon_id_hash) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue