Blame SOURCES/0025-mok-minor-cleanups.patch

6a35ff
From ff890cf45224926574eee93b0ea1494468870bd3 Mon Sep 17 00:00:00 2001
6a35ff
From: Peter Jones <pjones@redhat.com>
6a35ff
Date: Thu, 31 Jan 2019 14:04:57 -0500
6a35ff
Subject: [PATCH 25/62] mok: minor cleanups
6a35ff
6a35ff
Signed-off-by: Peter Jones <pjones@redhat.com>
6a35ff
Upstream-commit-id: 617b9007668
6a35ff
---
6a35ff
 mok.c | 7 +++++--
6a35ff
 1 file changed, 5 insertions(+), 2 deletions(-)
6a35ff
6a35ff
diff --git a/mok.c b/mok.c
6a35ff
index 6150d8c8868..59630e74425 100644
6a35ff
--- a/mok.c
6a35ff
+++ b/mok.c
6a35ff
@@ -138,13 +138,16 @@ struct mok_state_variable mok_state_variables[] = {
6a35ff
 	{ NULL, }
6a35ff
 };
6a35ff
 
6a35ff
-inline BOOLEAN check_vendor_cert(struct mok_state_variable *v)
6a35ff
+static inline BOOLEAN nonnull(1)
6a35ff
+check_vendor_cert(struct mok_state_variable *v)
6a35ff
 {
6a35ff
 	return (v->addend_source && v->addend_size &&
6a35ff
 		*v->addend_source && *v->addend_size) ? TRUE : FALSE;
6a35ff
 }
6a35ff
+
6a35ff
 #if defined(ENABLE_SHIM_CERT)
6a35ff
-inline BOOLEAN check_build_cert(struct mok_state_variable *v)
6a35ff
+static inline BOOLEAN nonnull(1)
6a35ff
+check_build_cert(struct mok_state_variable *v)
6a35ff
 {
6a35ff
 	return (v->build_cert && v->build_cert_size &&
6a35ff
 		*v->build_cert && *v->build_cert_size) ? TRUE : FALSE;
6a35ff
-- 
6a35ff
2.26.2
6a35ff