diff options
author | Len Brown <len.brown@intel.com> | 2009-06-18 00:38:27 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-06-18 00:38:27 -0400 |
commit | 586caae36cece718ff46b3a59b88af79e9f7a2e0 (patch) | |
tree | c6b944104c4227c2d302632012224faf0c4d034d /drivers/acpi | |
parent | ff754e2e85557ed7244385f0f2053c80e8ac9948 (diff) |
ACPI: battery: fix CONFIG_ACPI_PROCFS_POWER=n build warning
drivers/acpi/battery.c:841: warning: label ‘end’ defined but not used
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/battery.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index eb00c4e3747a..58b4517ce712 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -832,14 +832,12 @@ static int acpi_battery_add(struct acpi_device *device) | |||
832 | acpi_battery_update(battery); | 832 | acpi_battery_update(battery); |
833 | #ifdef CONFIG_ACPI_PROCFS_POWER | 833 | #ifdef CONFIG_ACPI_PROCFS_POWER |
834 | result = acpi_battery_add_fs(device); | 834 | result = acpi_battery_add_fs(device); |
835 | if (result) | ||
836 | goto end; | ||
837 | #endif | 835 | #endif |
838 | printk(KERN_INFO PREFIX "%s Slot [%s] (battery %s)\n", | 836 | if (!result) { |
839 | ACPI_BATTERY_DEVICE_NAME, acpi_device_bid(device), | 837 | printk(KERN_INFO PREFIX "%s Slot [%s] (battery %s)\n", |
840 | device->status.battery_present ? "present" : "absent"); | 838 | ACPI_BATTERY_DEVICE_NAME, acpi_device_bid(device), |
841 | end: | 839 | device->status.battery_present ? "present" : "absent"); |
842 | if (result) { | 840 | } else { |
843 | #ifdef CONFIG_ACPI_PROCFS_POWER | 841 | #ifdef CONFIG_ACPI_PROCFS_POWER |
844 | acpi_battery_remove_fs(device); | 842 | acpi_battery_remove_fs(device); |
845 | #endif | 843 | #endif |