summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2019-01-31 14:04:57 -0500
committerPeter Jones <pjones@redhat.com>2020-07-23 20:52:12 -0400
commitff890cf45224926574eee93b0ea1494468870bd3 (patch)
tree7df6a12f92e03b08cd6cf629980dbb6cd706fc7e
parent3d62232feb296b238ca5d7963ba40a2c346767e7 (diff)
downloadefi-boot-shim-ff890cf45224926574eee93b0ea1494468870bd3.tar.gz
efi-boot-shim-ff890cf45224926574eee93b0ea1494468870bd3.zip
mok: minor cleanups
Signed-off-by: Peter Jones <pjones@redhat.com> Upstream-commit-id: 617b9007668
-rw-r--r--mok.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mok.c b/mok.c
index 6150d8c8..59630e74 100644
--- a/mok.c
+++ b/mok.c
@@ -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;