diff options
-rw-r--r-- | drivers/acpi/battery.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 681e26b56b11..a291849f6c5d 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -554,10 +554,6 @@ static ssize_t acpi_battery_write_alarm(struct file *file, | |||
554 | 554 | ||
555 | if (!battery || (count > sizeof(alarm_string) - 1)) | 555 | if (!battery || (count > sizeof(alarm_string) - 1)) |
556 | return -EINVAL; | 556 | return -EINVAL; |
557 | if (result) { | ||
558 | result = -ENODEV; | ||
559 | goto end; | ||
560 | } | ||
561 | if (!acpi_battery_present(battery)) { | 557 | if (!acpi_battery_present(battery)) { |
562 | result = -ENODEV; | 558 | result = -ENODEV; |
563 | goto end; | 559 | goto end; |