提交 2d5914cc 编写于 作者: A Andy Shevchenko 提交者: Rafael J. Wysocki

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: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 6270da6f
...@@ -211,9 +211,10 @@ static int acpi_processor_update_tsd_coord(void) ...@@ -211,9 +211,10 @@ static int acpi_processor_update_tsd_coord(void)
*/ */
void acpi_processor_throttling_init(void) void acpi_processor_throttling_init(void)
{ {
if (acpi_processor_update_tsd_coord()) if (acpi_processor_update_tsd_coord()) {
ACPI_DEBUG_PRINT((ACPI_DB_INFO, ACPI_DEBUG_PRINT((ACPI_DB_INFO,
"Assume no T-state coordination\n")); "Assume no T-state coordination\n"));
}
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册