aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-07-09 14:33:15 -0400
committerLen Brown <len.brown@intel.com>2007-08-03 22:31:07 -0400
commitbc90a0105dea7b773e99ae7abde56a6930081ddb (patch)
treefd9d097da2f5f0c72adce0fb00603f2cacc9f231 /drivers/acpi
parent7a883eaf62f4b943ebec738ce3b0796c67ef5d32 (diff)
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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/sbs.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c
index 7d8e78ea13a5..82c3a550016d 100644
--- a/drivers/acpi/sbs.c
+++ b/drivers/acpi/sbs.c
@@ -1415,7 +1415,7 @@ static int acpi_sbs_update_run(struct acpi_sbs *sbs, int id, int data_type)
1415 char dir_name[32]; 1415 char dir_name[32];
1416 int do_battery_init = 0, do_ac_init = 0; 1416 int do_battery_init = 0, do_ac_init = 0;
1417 int old_remaining_capacity = 0; 1417 int old_remaining_capacity = 0;
1418 int update_ac = 1, update_battery = 1; 1418 int update_battery = 1;
1419 int up_tm = update_time; 1419 int up_tm = update_time;
1420 1420
1421 if (sbs_zombie(sbs)) { 1421 if (sbs_zombie(sbs)) {
@@ -1435,10 +1435,6 @@ static int acpi_sbs_update_run(struct acpi_sbs *sbs, int id, int data_type)
1435 1435
1436 sbs->run_cnt++; 1436 sbs->run_cnt++;
1437 1437
1438 if (!update_ac && !update_battery) {
1439 goto end;
1440 }
1441
1442 old_ac_present = sbs->ac.ac_present; 1438 old_ac_present = sbs->ac.ac_present;
1443 1439
1444 result = acpi_ac_get_present(sbs); 1440 result = acpi_ac_get_present(sbs);