diff options
author | Vesa-Matti Kari <vmkari@cc.helsinki.fi> | 2008-08-07 03:18:20 +0300 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-08-15 08:40:47 +1000 |
commit | dbc74c65b3fd841985935f676388c82d6b85c485 (patch) | |
tree | 8ebbf88795fa70f56a9eb64bfc0b21dd8666d97f /security/selinux/ss/avtab.c | |
parent | 421fae06be9e0dac45747494756b3580643815f9 (diff) | |
download | op-kernel-dev-dbc74c65b3fd841985935f676388c82d6b85c485.zip op-kernel-dev-dbc74c65b3fd841985935f676388c82d6b85c485.tar.gz |
selinux: Unify for- and while-loop style
Replace "thing != NULL" comparisons with just "thing" to make
the code look more uniform (mixed styles were used even in the
same source file).
Signed-off-by: Vesa-Matti Kari <vmkari@cc.helsinki.fi>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/ss/avtab.c')
-rw-r--r-- | security/selinux/ss/avtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/avtab.c b/security/selinux/ss/avtab.c index e8ae812..1215b8e 100644 --- a/security/selinux/ss/avtab.c +++ b/security/selinux/ss/avtab.c @@ -229,7 +229,7 @@ void avtab_destroy(struct avtab *h) for (i = 0; i < h->nslot; i++) { cur = h->htable[i]; - while (cur != NULL) { + while (cur) { temp = cur; cur = cur->next; kmem_cache_free(avtab_node_cachep, temp); |