From mboxrd@z Thu Jan 1 00:00:00 1970 From: naresh.bhat@linaro.org Subject: [PATCH] ACPI/fan: Initialize acpi_state variable Date: Mon, 1 Jul 2013 19:51:00 +0530 Message-ID: <1372688460-11010-1-git-send-email-naresh.bhat@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-pb0-f42.google.com ([209.85.160.42]:57569 "EHLO mail-pb0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752388Ab3GAOVO (ORCPT ); Mon, 1 Jul 2013 10:21:14 -0400 Received: by mail-pb0-f42.google.com with SMTP id un1so4919659pbc.1 for ; Mon, 01 Jul 2013 07:21:13 -0700 (PDT) Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: linux-acpi@vger.kernel.org Cc: len.brown@intel.com, patches@linaro.org, linaro-kernel@lists.linaro.org, naresh.bhat@linaro.org, linux-kernel@vger.kernel.org =46rom: Naresh Bhat CC drivers/acpi/fan.o drivers/acpi/fan.c: In function =E2=80=98fan_get_cur_state=E2=80=99: drivers/acpi/fan.c:96:9: warning: =E2=80=98acpi_state=E2=80=99 may be u= sed uninitialized in this function [-Wuninitialized] Signed-off-by: Naresh Bhat --- 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 8d1c010..5b02a0a 100644 --- a/drivers/acpi/fan.c +++ b/drivers/acpi/fan.c @@ -84,7 +84,7 @@ static int fan_get_cur_state(struct thermal_cooling_d= evice *cdev, unsigned long { struct acpi_device *device =3D cdev->devdata; int result; - int acpi_state; + int acpi_state =3D ACPI_STATE_D0; =20 if (!device) return -EINVAL; --=20 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html