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) {