Make yaca_cleanup return void 22/78922/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 7 Jul 2016 10:36:38 +0000 (12:36 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 7 Jul 2016 10:36:38 +0000 (12:36 +0200)
Change-Id: I325703541385d064f9f3ba36fc9aeebb1e0e7bde

api/yaca/yaca_crypto.h
src/crypto.c

index 20cae17..9ee5ed7 100644 (file)
@@ -66,12 +66,9 @@ int yaca_initialize(void);
  *
  * @since_tizen 3.0
  *
- * @return #YACA_ERROR_NONE on success
- * @retval #YACA_ERROR_NONE Successful
- *
  * @see yaca_initialize()
  */
-int yaca_cleanup(void);
+void yaca_cleanup(void);
 
 /**
  * @brief  Allocates the memory.
index 158bcf8..5218aba 100644 (file)
@@ -157,11 +157,11 @@ exit:
        return ret;
 }
 
-API int yaca_cleanup(void)
+API void yaca_cleanup(void)
 {
        /* calling cleanup twice on the same thread is a NOP */
        if (!current_thread_initialized)
-               return YACA_ERROR_NONE;
+               return;
 
        /* per thread cleanup */
        ERR_remove_thread_state(NULL);
@@ -190,8 +190,6 @@ API int yaca_cleanup(void)
                current_thread_initialized = false;
        }
        pthread_mutex_unlock(&init_mutex);
-
-       return YACA_ERROR_NONE;
 }
 
 API int yaca_malloc(size_t size, void **memory)