ACPI: sbs: remove dead code
Remove dead code spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
7a883eaf62
commit
bc90a0105d
1 changed files with 1 additions and 5 deletions
|
@ -1415,7 +1415,7 @@ static int acpi_sbs_update_run(struct acpi_sbs *sbs, int id, int data_type)
|
||||||
char dir_name[32];
|
char dir_name[32];
|
||||||
int do_battery_init = 0, do_ac_init = 0;
|
int do_battery_init = 0, do_ac_init = 0;
|
||||||
int old_remaining_capacity = 0;
|
int old_remaining_capacity = 0;
|
||||||
int update_ac = 1, update_battery = 1;
|
int update_battery = 1;
|
||||||
int up_tm = update_time;
|
int up_tm = update_time;
|
||||||
|
|
||||||
if (sbs_zombie(sbs)) {
|
if (sbs_zombie(sbs)) {
|
||||||
|
@ -1435,10 +1435,6 @@ static int acpi_sbs_update_run(struct acpi_sbs *sbs, int id, int data_type)
|
||||||
|
|
||||||
sbs->run_cnt++;
|
sbs->run_cnt++;
|
||||||
|
|
||||||
if (!update_ac && !update_battery) {
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
old_ac_present = sbs->ac.ac_present;
|
old_ac_present = sbs->ac.ac_present;
|
||||||
|
|
||||||
result = acpi_ac_get_present(sbs);
|
result = acpi_ac_get_present(sbs);
|
||||||
|
|
Loading…
Add table
Reference in a new issue