commit f4547c549fcaa821b1de49bab5b3a4b7bd6579a7
parent 4aa6134c7316c58c8e6755d7efe64cdc7485739c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 8 Sep 2015 09:07:26 +0200
Fix an "unused exit label" warning
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/test_ssp_rng.c b/src/test_ssp_rng.c
@@ -70,7 +70,9 @@ test_rng(const struct ssp_rng_type* type)
#ifdef WITH_R123_AES
if (r == RES_BAD_OP && type == &ssp_rng_aes) {
printf("AES-NI instructions not available on this CPU and system.\n");
- goto exit;
+ mem_shutdown_proxy_allocator(&allocator);
+ check_memory_allocator(&allocator);
+ return;
}
#endif
CHECK(r, RES_OK);
@@ -185,7 +187,6 @@ test_rng(const struct ssp_rng_type* type)
ssp_rng_ref_put(rng1);
ssp_rng_ref_put(rng2);
-exit:
check_memory_allocator(&allocator);
mem_shutdown_proxy_allocator(&allocator);
}