[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <ea11fea30808030024v18912201x46d12fe389e508f8@mail.gmail.com>
Date: Sun, 3 Aug 2008 12:54:28 +0530
From: "Manish Katiyar" <mkatiyar@...il.com>
To: kernel-janitors@...r.kernel.org, astarikovskiy@...e.de,
vladimir.p.lebedev@...el.com, LKML <linux-kernel@...r.kernel.org>,
trivial@...r.kernel.org
Cc: mkatiyar@...il.com
Subject: [PATCH] Remove warning 'unused variable battery' in drivers/acpi/sbs.c
Below patch removes the following warning:
drivers/acpi/sbs.c: In function 'acpi_battery_remove':
drivers/acpi/sbs.c:819: warning: unused variable 'battery'
Signed-off-by:- "Manish Katiyar" <mkatiyar@...il.com>
---
drivers/acpi/sbs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c
index 10a3651..8493603 100644
--- a/drivers/acpi/sbs.c
+++ b/drivers/acpi/sbs.c
@@ -816,7 +816,9 @@ static int acpi_battery_add(struct acpi_sbs *sbs, int id)
static void acpi_battery_remove(struct acpi_sbs *sbs, int id)
{
+#ifdef CONFIG_ACPI_SYSFS_POWER || CONFIG_ACPI_PROCFS_POWER
struct acpi_battery *battery = &sbs->battery[id];
+#endif
#ifdef CONFIG_ACPI_SYSFS_POWER
if (battery->bat.dev) {
if (battery->have_sysfs_alarm)
--
1.5.4.3
Thanks -
Manish
--
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