Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 586caae3 authored by Len Brown's avatar Len Brown
Browse files

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: default avatarLen Brown <len.brown@intel.com>
parent ff754e2e
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -832,14 +832,12 @@ static int acpi_battery_add(struct acpi_device *device)
	acpi_battery_update(battery);
#ifdef CONFIG_ACPI_PROCFS_POWER
	result = acpi_battery_add_fs(device);
	if (result)
		goto end;
#endif
	if (!result) {
		printk(KERN_INFO PREFIX "%s Slot [%s] (battery %s)\n",
			ACPI_BATTERY_DEVICE_NAME, acpi_device_bid(device),
			device->status.battery_present ? "present" : "absent");
      end:
	if (result) {
	} else {
#ifdef CONFIG_ACPI_PROCFS_POWER
		acpi_battery_remove_fs(device);
#endif