diff options
author | Paul Moore <paul@paul-moore.com> | 2020-03-05 20:55:43 +0100 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-03-05 20:55:43 +0100 |
commit | 5e729e111eaf37b7941c678cb84af62539a4799a (patch) | |
tree | 560da6da64809b755af8b5e5a320d482b3ab26be /security/selinux/ss/avtab.c | |
parent | selinux: clean up error path in policydb_init() (diff) | |
download | linux-5e729e111eaf37b7941c678cb84af62539a4799a.tar.xz linux-5e729e111eaf37b7941c678cb84af62539a4799a.zip |
selinux: avtab_init() and cond_policydb_init() return void
The avtab_init() and cond_policydb_init() functions always return
zero so mark them as returning void and update the callers not to
check for a return value.
Suggested-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Reviewed-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/avtab.c')
-rw-r--r-- | security/selinux/ss/avtab.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/selinux/ss/avtab.c b/security/selinux/ss/avtab.c index 8c5800750fa8..01b300a4a882 100644 --- a/security/selinux/ss/avtab.c +++ b/security/selinux/ss/avtab.c @@ -299,12 +299,11 @@ void avtab_destroy(struct avtab *h) h->mask = 0; } -int avtab_init(struct avtab *h) +void avtab_init(struct avtab *h) { kvfree(h->htable); h->htable = NULL; h->nel = 0; - return 0; } int avtab_alloc(struct avtab *h, u32 nrules) |