diff options
author | Paul Moore <paul@paul-moore.com> | 2020-03-05 22:55:43 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-03-05 22:55:43 +0300 |
commit | 5e729e111eaf37b7941c678cb84af62539a4799a (patch) | |
tree | 560da6da64809b755af8b5e5a320d482b3ab26be /security/selinux/ss/avtab.h | |
parent | 34a2dab488bcaf2ac2198d7b305794280d73207b (diff) | |
download | linux-5e729e111eaf37b7941c678cb84af62539a4799a.tar.xz |
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.h')
-rw-r--r-- | security/selinux/ss/avtab.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/avtab.h b/security/selinux/ss/avtab.h index 837e938798ef..5fdcb6696bcc 100644 --- a/security/selinux/ss/avtab.h +++ b/security/selinux/ss/avtab.h @@ -87,7 +87,7 @@ struct avtab { u32 mask; /* mask to compute hash func */ }; -int avtab_init(struct avtab *); +void avtab_init(struct avtab *h); int avtab_alloc(struct avtab *, u32); struct avtab_datum *avtab_search(struct avtab *h, struct avtab_key *k); void avtab_destroy(struct avtab *h); |