diff options
author | Michael Neuling <mikey@neuling.org> | 2015-08-27 13:26:57 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-08-28 14:55:29 +1000 |
commit | 23e88a9001985d8b684ddd9e17ca058bd9138e53 (patch) | |
tree | 4249835845e6f0480851926a1788b5183c04f8dc /core | |
parent | 9eeb5af64be73fb2ca981330b39d0b46acc69057 (diff) | |
download | skiboot-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |