Remove unnecessary local variable from GetOutputFormat and GetInputFormat

Signed-off-by: JamePeng <jame_peng@sina.com>
This commit is contained in:
JamePeng 2016-02-11 04:35:12 +08:00
parent 86e6d94f56
commit 60f8b5a535

View File

@ -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<u32>(inf);
cmd_buff[2] = static_cast<u32>(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<u32>(opf);
cmd_buff[2] = static_cast<u32>(conversion.output_format);
}
static void SetRotation(Service::Interface* self) {