projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93ad7c0
)
ACPI: battery: remove dead code
author
Adrian Bunk
<bunk@kernel.org>
Wed, 24 Oct 2007 16:25:37 +0000
(18:25 +0200)
committer
Len Brown
<len.brown@intel.com>
Thu, 25 Oct 2007 20:33:00 +0000
(16:33 -0400)
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>
drivers/acpi/battery.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/battery.c
b/drivers/acpi/battery.c
index 681e26b56b11c2b37a3e242db63ee9ef1dc6444a..a291849f6c5d5b894cc45521428ee4bf7917fca1 100644
(file)
--- 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;