[Skiboot] [PATCH] hmi: Remove unused variable in opal_handle_hmi()
Michael Neuling
mikey at neuling.org
Thu Aug 27 13:26:57 AEST 2015
rc is only used once in opal_handle_hmi(), so let's remove it.
Signed-off-by: Michael Neuling <mikey at neuling.org>
---
resend: forgot [PATCH] in the subject.
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);
More information about the Skiboot
mailing list