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

ACPI: suppress compiler warnings in processor_throttling.c

This patch fixes following compiler warnings when build via make W=1:

drivers/acpi/processor_throttling.c: In function ‘acpi_processor_throttling_init’:
drivers/acpi/processor_throttling.c:216:40: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Andy Shevchenko and committed by
Rafael J. Wysocki
2d5914cc 6270da6f

+2 -1
+2 -1
drivers/acpi/processor_throttling.c
··· 211 211 */ 212 212 void acpi_processor_throttling_init(void) 213 213 { 214 - if (acpi_processor_update_tsd_coord()) 214 + if (acpi_processor_update_tsd_coord()) { 215 215 ACPI_DEBUG_PRINT((ACPI_DB_INFO, 216 216 "Assume no T-state coordination\n")); 217 + } 217 218 218 219 return; 219 220 }