diff options
| author | Peter Jones <pjones@redhat.com> | 2019-01-31 14:04:57 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2020-07-23 20:52:12 -0400 |
| commit | ff890cf45224926574eee93b0ea1494468870bd3 (patch) | |
| tree | 7df6a12f92e03b08cd6cf629980dbb6cd706fc7e | |
| parent | 3d62232feb296b238ca5d7963ba40a2c346767e7 (diff) | |
| download | efi-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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; |
