From f8d72bcca4be7be87ad266824b9602f1411a7902 Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Sat, 17 Oct 2009 08:34:39 +0200 Subject: [PATCH] --- yaml --- r: 168289 b: refs/heads/master c: 5cfa245b0b63c3d79568e78a1ee3d00654d5517d h: refs/heads/master i: 168287: 1282c632970eb9de611c26a4f34e23ea39a9bc18 v: v3 --- [refs] | 2 +- trunk/drivers/acpi/processor_throttling.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 245ef619eaf3..e0fbd273cfb1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 941b10fab2cbd90ac7ad6bc2338ffe30e1d3ce53 +refs/heads/master: 5cfa245b0b63c3d79568e78a1ee3d00654d5517d diff --git a/trunk/drivers/acpi/processor_throttling.c b/trunk/drivers/acpi/processor_throttling.c index 4c6c14c1e307..1c5d7a8b2fdf 100644 --- a/trunk/drivers/acpi/processor_throttling.c +++ b/trunk/drivers/acpi/processor_throttling.c @@ -1133,15 +1133,15 @@ int acpi_processor_get_throttling_info(struct acpi_processor *pr) int result = 0; struct acpi_processor_throttling *pthrottling; + if (!pr) + return -EINVAL; + ACPI_DEBUG_PRINT((ACPI_DB_INFO, "pblk_address[0x%08x] duty_offset[%d] duty_width[%d]\n", pr->throttling.address, pr->throttling.duty_offset, pr->throttling.duty_width)); - if (!pr) - return -EINVAL; - /* * Evaluate _PTC, _TSS and _TPC * They must all be present or none of them can be used.