diff options
| author | Anton Altaparmakov <aia21@cantab.net> | 2005-06-26 22:19:40 +0100 | 
|---|---|---|
| committer | Anton Altaparmakov <aia21@cantab.net> | 2005-06-26 22:19:40 +0100 | 
| commit | 2a322e4c08be4e7cb0c04b427ddaaa679fd88863 (patch) | |
| tree | ad8cc17bfd3b5e57e36f07a249028667d72f0b96 /security/selinux/ss/conditional.c | |
| parent | ba6d2377c85c9b8a793f455d8c9b6cf31985d70f (diff) | |
| parent | 8678887e7fb43cd6c9be6c9807b05e77848e0920 (diff) | |
Automatic merge with /usr/src/ntfs-2.6.git.
Diffstat (limited to 'security/selinux/ss/conditional.c')
| -rw-r--r-- | security/selinux/ss/conditional.c | 9 | 
1 files changed, 3 insertions, 6 deletions
| diff --git a/security/selinux/ss/conditional.c b/security/selinux/ss/conditional.c index b53441184aca..e2057f5a411a 100644 --- a/security/selinux/ss/conditional.c +++ b/security/selinux/ss/conditional.c @@ -166,16 +166,14 @@ static void cond_list_destroy(struct cond_node *list)  void cond_policydb_destroy(struct policydb *p)  { -	if (p->bool_val_to_struct != NULL) -		kfree(p->bool_val_to_struct); +	kfree(p->bool_val_to_struct);  	avtab_destroy(&p->te_cond_avtab);  	cond_list_destroy(p->cond_list);  }  int cond_init_bool_indexes(struct policydb *p)  { -	if (p->bool_val_to_struct) -		kfree(p->bool_val_to_struct); +	kfree(p->bool_val_to_struct);  	p->bool_val_to_struct = (struct cond_bool_datum**)  		kmalloc(p->p_bools.nprim * sizeof(struct cond_bool_datum*), GFP_KERNEL);  	if (!p->bool_val_to_struct) @@ -185,8 +183,7 @@ int cond_init_bool_indexes(struct policydb *p)  int cond_destroy_bool(void *key, void *datum, void *p)  { -	if (key) -		kfree(key); +	kfree(key);  	kfree(datum);  	return 0;  } | 
