From 435d2fb0c3ff277d299685e60699ddc1b81c6b5e Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 13 May 2020 20:44:59 -0700 Subject: [PATCH] exo2: remove unused lvars --- exosphere2/program/source/smc/secmon_random_cache.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/exosphere2/program/source/smc/secmon_random_cache.cpp b/exosphere2/program/source/smc/secmon_random_cache.cpp index b5cdf1468..13b1fd941 100644 --- a/exosphere2/program/source/smc/secmon_random_cache.cpp +++ b/exosphere2/program/source/smc/secmon_random_cache.cpp @@ -83,11 +83,8 @@ namespace ams::secmon::smc { } void GetRandomFromCache(void *dst, size_t size) { - u8 * const cache = GetRandomBytesCache(); - u8 * cur_dst = static_cast(dst); - /* Copy out the requested size. */ - std::memcpy(dst, cache + g_random_offset_low, size); + std::memcpy(dst, GetRandomBytesCache() + g_random_offset_low, size); /* Advance. */ g_random_offset_low += size;