Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: processor_throttling: Fix several coding style issues

Drop one redundant return statement and fix a few white space
issues.

Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Clayton Casciato and committed by
Rafael J. Wysocki
2ef53bf7 69530b43

+8 -11
+8 -11
drivers/acpi/processor_throttling.c
··· 6 6 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> 7 7 * Copyright (C) 2004 Dominik Brodowski <linux@brodo.de> 8 8 * Copyright (C) 2004 Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> 9 - * - Added processor hotplug support 9 + * - Added processor hotplug support 10 10 */ 11 11 12 12 #include <linux/kernel.h> ··· 195 195 { 196 196 if (acpi_processor_update_tsd_coord()) 197 197 pr_debug("Assume no T-state coordination\n"); 198 - 199 - return; 200 198 } 201 199 202 200 static int acpi_processor_throttling_notifier(unsigned long event, void *data) 203 201 { 204 202 struct throttling_tstate *p_tstate = data; 205 203 struct acpi_processor *pr; 206 - unsigned int cpu ; 204 + unsigned int cpu; 207 205 int target_state; 208 206 struct acpi_processor_limit *p_limit; 209 207 struct acpi_processor_throttling *p_throttling; ··· 475 477 goto end; 476 478 } 477 479 478 - end: 480 + end: 479 481 kfree(buffer.pointer); 480 482 481 483 return result; ··· 552 554 } 553 555 } 554 556 555 - end: 557 + end: 556 558 kfree(buffer.pointer); 557 559 558 560 return result; ··· 637 639 pthrottling->shared_type = DOMAIN_COORD_TYPE_SW_ALL; 638 640 } 639 641 640 - end: 642 + end: 641 643 kfree(buffer.pointer); 642 644 return result; 643 645 } ··· 715 717 msr_low = 0; 716 718 msr_high = 0; 717 719 rdmsr_safe(MSR_IA32_THERM_CONTROL, 718 - (u32 *)&msr_low , (u32 *) &msr_high); 720 + (u32 *)&msr_low, (u32 *) &msr_high); 719 721 msr = (msr_high << 32) | msr_low; 720 722 *value = (u64) msr; 721 723 ret = 0; ··· 1183 1185 */ 1184 1186 if (acpi_processor_get_throttling_control(pr) || 1185 1187 acpi_processor_get_throttling_states(pr) || 1186 - acpi_processor_get_platform_limit(pr)) 1187 - { 1188 + acpi_processor_get_platform_limit(pr)) { 1188 1189 pr->throttling.acpi_processor_get_throttling = 1189 1190 &acpi_processor_get_throttling_fadt; 1190 1191 pr->throttling.acpi_processor_set_throttling = ··· 1243 1246 goto end; 1244 1247 } 1245 1248 1246 - end: 1249 + end: 1247 1250 if (result) 1248 1251 pr->flags.throttling = 0; 1249 1252