aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2015-08-27 13:26:57 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-08-28 14:55:29 +1000
commit23e88a9001985d8b684ddd9e17ca058bd9138e53 (patch)
tree4249835845e6f0480851926a1788b5183c04f8dc /core
parent9eeb5af64be73fb2ca981330b39d0b46acc69057 (diff)
downloadskiboot-23e88a9001985d8b684ddd9e17ca058bd9138e53.zip
skiboot-23e88a9001985d8b684ddd9e17ca058bd9138e53.tar.gz
skiboot-23e88a9001985d8b684ddd9e17ca058bd9138e53.tar.bz2
hmi: Remove unused variable in opal_handle_hmi()
rc is only used once in opal_handle_hmi(), so let's remove it. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r--core/hmi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/hmi.c b/core/hmi.c
index 0b9c7fb..cbd35e6 100644
--- a/core/hmi.c
+++ b/core/hmi.c
@@ -704,7 +704,6 @@ int handle_hmi_exception(uint64_t hmer, struct OpalHMIEvent *hmi_evt)
static int64_t opal_handle_hmi(void)
{
uint64_t hmer;
- int rc = OPAL_SUCCESS;
struct OpalHMIEvent hmi_evt;
/*
@@ -719,6 +718,6 @@ static int64_t opal_handle_hmi(void)
hmer = mfspr(SPR_HMER); /* Get HMER register value */
handle_hmi_exception(hmer, &hmi_evt);
- return rc;
+ return OPAL_SUCCESS;
}
opal_call(OPAL_HANDLE_HMI, opal_handle_hmi, 0);