aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2020-10-01 17:41:19 +1000
committerOliver O'Halloran <oohall@gmail.com>2020-10-01 17:41:21 +1000
commitb9cbe4f6f25de9e5a838bec5394a8384cb47ed40 (patch)
treea67b46f210ca1d0f348af14a25bb9cfbda297c32
parent45f67b179e6c2a6be59c0305066dd4a0bcafd002 (diff)
downloadskiboot-b9cbe4f6f25de9e5a838bec5394a8384cb47ed40.zip
skiboot-b9cbe4f6f25de9e5a838bec5394a8384cb47ed40.tar.gz
skiboot-b9cbe4f6f25de9e5a838bec5394a8384cb47ed40.tar.bz2
secvar/test: Remove broken initalizers
Some versions of GCC complain about this. That and since it's a static global it goes in the BSS and is initialized to zero anyway. Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
-rw-r--r--libstb/secvar/storage/fakenv_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstb/secvar/storage/fakenv_ops.c b/libstb/secvar/storage/fakenv_ops.c
index 77ae6c3..224ac2a 100644
--- a/libstb/secvar/storage/fakenv_ops.c
+++ b/libstb/secvar/storage/fakenv_ops.c
@@ -15,8 +15,8 @@ struct fake_tpmnv {
int defined[2];
} __attribute__((packed));
-static struct fake_tpmnv fakenv = {0};
-static int tpm_ready = 0;
+static struct fake_tpmnv fakenv;
+static int tpm_ready;
static inline void *nv_index_address(int index)