Skip to content

Commit

Permalink
mok: minor cleanups
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jones <pjones@redhat.com>
  • Loading branch information
vathpela committed Jan 31, 2019
1 parent aecbe1f commit 617b900
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mok.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,16 @@ struct mok_state_variable mok_state_variables[] = {
{ NULL, }
};

inline BOOLEAN check_vendor_cert(struct mok_state_variable *v)
static inline BOOLEAN nonnull(1)
check_vendor_cert(struct mok_state_variable *v)
{
return (v->addend_source && v->addend_size &&
*v->addend_source && *v->addend_size) ? TRUE : FALSE;
}

#if defined(ENABLE_SHIM_CERT)
inline BOOLEAN check_build_cert(struct mok_state_variable *v)
static inline BOOLEAN nonnull(1)
check_build_cert(struct mok_state_variable *v)
{
return (v->build_cert && v->build_cert_size &&
*v->build_cert && *v->build_cert_size) ? TRUE : FALSE;
Expand Down

0 comments on commit 617b900

Please sign in to comment.