Skip to content

Commit

Permalink
ACPI: battery: remove dead code
Browse files Browse the repository at this point in the history
After commit f1d4661 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>
  • Loading branch information
Adrian Bunk authored and Len Brown committed Oct 25, 2007
1 parent 93ad7c0 commit c9e4172
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/acpi/battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c9e4172

Please sign in to comment.