From 60f8b5a535e98f0eae7bb34162995b00fd224bfc Mon Sep 17 00:00:00 2001 From: JamePeng Date: Thu, 11 Feb 2016 04:35:12 +0800 Subject: [PATCH] Remove unnecessary local variable from GetOutputFormat and GetInputFormat Signed-off-by: JamePeng --- src/core/hle/service/y2r_u.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/core/hle/service/y2r_u.cpp b/src/core/hle/service/y2r_u.cpp index 2183282ec..8f5b5b19a 100644 --- a/src/core/hle/service/y2r_u.cpp +++ b/src/core/hle/service/y2r_u.cpp @@ -93,11 +93,10 @@ static void SetInputFormat(Service::Interface* self) { static void GetInputFormat(Service::Interface* self) { u32* cmd_buff = Kernel::GetCommandBuffer(); - InputFormat inf = conversion.input_format; - LOG_DEBUG(Service_Y2R, "Get input_format=%hhu", inf); + LOG_DEBUG(Service_Y2R, "Get input_format=%hhu", conversion.input_format); cmd_buff[1] = RESULT_SUCCESS.raw; - cmd_buff[2] = static_cast(inf); + cmd_buff[2] = static_cast(conversion.input_format); } static void SetOutputFormat(Service::Interface* self) { @@ -112,11 +111,10 @@ static void SetOutputFormat(Service::Interface* self) { static void GetOutputFormat(Service::Interface* self) { u32* cmd_buff = Kernel::GetCommandBuffer(); - OutputFormat opf = conversion.output_format; - LOG_DEBUG(Service_Y2R, "Get output_format=%hhu", opf); + LOG_DEBUG(Service_Y2R, "Get output_format=%hhu", conversion.output_format); cmd_buff[1] = RESULT_SUCCESS.raw; - cmd_buff[2] = static_cast(opf); + cmd_buff[2] = static_cast(conversion.output_format); } static void SetRotation(Service::Interface* self) {