Skip to content

Commit

Permalink
core/hmi: assign flags=0 in case nothing set by handle_hmi_exception
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stewartsmith committed May 4, 2018
1 parent 44f2f83 commit aa59e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/hmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit aa59e48

Please sign in to comment.