Browse Source

[Pal/Linux-SGX] Remove effectively unsued variable in ocall_exit

Simon Gaiser 6 years ago
parent
commit
508fd9a4f7
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Pal/src/host/Linux-SGX/enclave_ocalls.c

+ 1 - 2
Pal/src/host/Linux-SGX/enclave_ocalls.c

@@ -66,11 +66,10 @@ int printf(const char * fmt, ...);
 
 
 int ocall_exit(int exitcode)
 int ocall_exit(int exitcode)
 {
 {
-    int retval = 0;
     int64_t code = exitcode;
     int64_t code = exitcode;
     SGX_OCALL(OCALL_EXIT, (void *) code);
     SGX_OCALL(OCALL_EXIT, (void *) code);
     /* never reach here */
     /* never reach here */
-    return retval;
+    return 0;
 }
 }
 
 
 int ocall_print_string (const char * str, unsigned int length)
 int ocall_print_string (const char * str, unsigned int length)