Skip to content

Commit

Permalink
ACPICA: Executer: Fix trivial issues in acpi_get_serial_access_bytes()
Browse files Browse the repository at this point in the history
This patch fixes trivial issues in acpi_get_serial_access_bytes(), no real
functional bugs. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Lv Zheng authored and Rafael J. Wysocki committed Jul 8, 2014
1 parent 4d2c822 commit c046912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/acpica/exfield.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ acpi_ex_get_serial_access_length(u32 accessor_type, u32 access_length);

/*******************************************************************************
*
* FUNCTION: acpi_get_serial_access_bytes
* FUNCTION: acpi_ex_get_serial_access_length
*
* PARAMETERS: accessor_type - The type of the protocol indicated by region
* field access attributes
Expand Down Expand Up @@ -103,7 +103,7 @@ acpi_ex_get_serial_access_length(u32 accessor_type, u32 access_length)
case AML_FIELD_ATTRIB_BLOCK_CALL:
default:

length = ACPI_GSBUS_BUFFER_SIZE;
length = ACPI_GSBUS_BUFFER_SIZE - 2;
break;
}

Expand Down

0 comments on commit c046912

Please sign in to comment.