summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/battery.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-10-24 18:25:37 +0200
committerLen Brown <len.brown@intel.com>2007-10-25 16:33:00 -0400
commitc9e4172cde0f793dbf48c99bdfd0abe7d18e4b09 (patch)
treee1d30a591040ad37a064d3d9de2447436cd81563 /drivers/acpi/battery.c
parent93ad7c07ad487b036add8760dabcc35666a550ef (diff)
downloadop-kernel-dev-c9e4172cde0f793dbf48c99bdfd0abe7d18e4b09.zip
op-kernel-dev-c9e4172cde0f793dbf48c99bdfd0abe7d18e4b09.tar.gz
ACPI: battery: remove dead code
After commit f1d4661abe05d0a2c014166042d15ed8b69ae8f2 this was dead code. Spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r--drivers/acpi/battery.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index 681e26b..a291849 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,
if (!battery || (count > sizeof(alarm_string) - 1))
return -EINVAL;
- if (result) {
- result = -ENODEV;
- goto end;
- }
if (!acpi_battery_present(battery)) {
result = -ENODEV;
goto end;
OpenPOWER on IntegriCloud