ACPI: suppress compiler warnings in processor_throttling.c
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 11 Mar 2013 09:17:05 +0000 (09:17 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 24 Mar 2013 23:05:48 +0000 (00:05 +0100)
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>
drivers/acpi/processor_throttling.c

index 1d02b7b..e7dd2c1 100644 (file)
@@ -211,9 +211,10 @@ err_ret:
  */
 void acpi_processor_throttling_init(void)
 {
-       if (acpi_processor_update_tsd_coord())
+       if (acpi_processor_update_tsd_coord()) {
                ACPI_DEBUG_PRINT((ACPI_DB_INFO,
                        "Assume no T-state coordination\n"));
+       }
 
        return;
 }