浏览代码

ACPI: throttling: fix build warning

Signed-off-by: Len Brown <len.brown@intel.com>
Len Brown 17 年之前
父节点
当前提交
3391a76f2b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/acpi/processor_throttling.c

+ 1 - 1
drivers/acpi/processor_throttling.c

@@ -987,7 +987,7 @@ static int acpi_processor_set_throttling_ptc(struct acpi_processor *pr,
 int acpi_processor_set_throttling(struct acpi_processor *pr, int state)
 int acpi_processor_set_throttling(struct acpi_processor *pr, int state)
 {
 {
 	cpumask_t saved_mask;
 	cpumask_t saved_mask;
-	int ret;
+	int ret = 0;
 	unsigned int i;
 	unsigned int i;
 	struct acpi_processor *match_pr;
 	struct acpi_processor *match_pr;
 	struct acpi_processor_throttling *p_throttling;
 	struct acpi_processor_throttling *p_throttling;