summaryrefslogtreecommitdiffstats
path: root/core/hmi.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2018-05-03 18:58:37 +1000
committerStewart Smith <stewart@linux.ibm.com>2018-05-04 03:25:04 -0500
commitaa59e48064b46da4b1a508c4daca4ea8c50d464a (patch)
tree9ed151483a3380fb0947d19ed0a4fed0478e950a /core/hmi.c
parent44f2f839f4337e583efa281860a5475695b37aa3 (diff)
downloadtalos-skiboot-aa59e48064b46da4b1a508c4daca4ea8c50d464a.tar.gz
talos-skiboot-aa59e48064b46da4b1a508c4daca4ea8c50d464a.zip
core/hmi: assign flags=0 in case nothing set by handle_hmi_exception
Practically speaking, I don't think you'd *currently* hit this. Found with Clang's scan-build. Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Acked-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core/hmi.c')
-rw-r--r--core/hmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/hmi.c b/core/hmi.c
index bd0fc13b..9dbc4737 100644
--- a/core/hmi.c
+++ b/core/hmi.c
@@ -1296,7 +1296,7 @@ opal_call(OPAL_HANDLE_HMI, opal_handle_hmi, 0);
static int64_t opal_handle_hmi2(__be64 *out_flags)
{
- uint64_t hmer, flags;
+ uint64_t hmer, flags = 0;
struct OpalHMIEvent hmi_evt;
/*
OpenPOWER on IntegriCloud