ACPI: battery: remove dead code
After commit f1d4661abe
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>
This commit is contained in:
parent
93ad7c07ad
commit
c9e4172cde
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue