[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFoFrHa_XsKaWDag_k3o_Lgizsf+qZUYPjBn9pvWSe83BY8sOg@mail.gmail.com>
Date: Mon, 1 Jul 2013 17:31:46 +0530
From: Naresh Bhat <naresh.bhat@...aro.org>
To: linux-acpi@...r.kernel.org
Cc: len.brown@...el.com, Patch Tracking <patches@...aro.org>,
linaro-kernel@...ts.linaro.org,
Naresh Bhat <naresh.bhat@...aro.org>,
linux-kernel@...r.kernel.org, "Rafael J. Wysocki" <rjw@...k.pl>
Subject: Re: [PATCH] ACPI/fan: Initialize acpi_state variable
Hi Rafeal,
I appreciate if you give any feedback on the provided patch.
Thanks
-Naresh Bhat
On 28 June 2013 01:17, <naresh.bhat@...aro.org> wrote:
> From: Naresh Bhat <naresh.bhat@...aro.org>
>
> CC drivers/acpi/fan.o
> drivers/acpi/fan.c: In function ‘fan_get_cur_state’:
> drivers/acpi/fan.c:96:9: warning: ‘acpi_state’ may be used uninitialized in this function [-Wuninitialized]
> ---
> drivers/acpi/fan.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c
> index f815da8..f961435 100644
> --- a/drivers/acpi/fan.c
> +++ b/drivers/acpi/fan.c
> @@ -84,7 +84,7 @@ static int fan_get_cur_state(struct thermal_cooling_device *cdev, unsigned long
> {
> struct acpi_device *device = cdev->devdata;
> int result;
> - int acpi_state;
> + int acpi_state = ACPI_STATE_D0;
>
> if (!device)
> return -EINVAL;
> --
> 1.7.9.5
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists