aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/exregion.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/exregion.c')
-rw-r--r--drivers/acpi/acpica/exregion.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/acpi/acpica/exregion.c b/drivers/acpi/acpica/exregion.c
index 044d44141be6..06a49245f410 100644
--- a/drivers/acpi/acpica/exregion.c
+++ b/drivers/acpi/acpica/exregion.c
@@ -162,7 +162,6 @@ acpi_ex_system_memory_space_handler(u32 function,
162 */ 162 */
163 page_boundary_map_length = 163 page_boundary_map_length =
164 ACPI_ROUND_UP(address, ACPI_DEFAULT_PAGE_SIZE) - address; 164 ACPI_ROUND_UP(address, ACPI_DEFAULT_PAGE_SIZE) - address;
165
166 if (page_boundary_map_length == 0) { 165 if (page_boundary_map_length == 0) {
167 page_boundary_map_length = ACPI_DEFAULT_PAGE_SIZE; 166 page_boundary_map_length = ACPI_DEFAULT_PAGE_SIZE;
168 } 167 }
@@ -240,19 +239,19 @@ acpi_ex_system_memory_space_handler(u32 function,
240 239
241 switch (bit_width) { 240 switch (bit_width) {
242 case 8: 241 case 8:
243 ACPI_SET8(logical_addr_ptr) = (u8) * value; 242 ACPI_SET8(logical_addr_ptr) = (u8)*value;
244 break; 243 break;
245 244
246 case 16: 245 case 16:
247 ACPI_SET16(logical_addr_ptr) = (u16) * value; 246 ACPI_SET16(logical_addr_ptr) = (u16)*value;
248 break; 247 break;
249 248
250 case 32: 249 case 32:
251 ACPI_SET32(logical_addr_ptr) = (u32) * value; 250 ACPI_SET32(logical_addr_ptr) = (u32)*value;
252 break; 251 break;
253 252
254 case 64: 253 case 64:
255 ACPI_SET64(logical_addr_ptr) = (u64) * value; 254 ACPI_SET64(logical_addr_ptr) = (u64)*value;
256 break; 255 break;
257 256
258 default: 257 default: