Skip to contentSkip to conversation

drivers/acpi/sbs.c: remove dead code

RFC PATCH New Adrian Bunk 1 participant 1 message Jun 15, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 drivers/acpi/sbs.c: remove dead code

This patch removes dead code spotted by the Coverity checker.

---

 drivers/acpi/sbs.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/acpi/sbs.c renamed from drivers/acpi/sbs.c.old +1 -5
@@ -1411,7 +1411,7 @@ static int acpi_sbs_update_run(struct ac
 	char dir_name[32];
 	int do_battery_init = 0, do_ac_init = 0;
 	int old_remaining_capacity = 0;
-	int update_ac = 1, update_battery = 1;
+	int update_battery = 1;
 	int up_tm = update_time;
 
 	if (sbs_zombie(sbs)) {
@@ -1431,10 +1431,6 @@ static int acpi_sbs_update_run(struct ac
 
 	sbs->run_cnt++;
 
-	if (!update_ac && !update_battery) {
-		goto end;
-	}
-
 	old_ac_present = sbs->ac.ac_present;
 
 	result = acpi_ac_get_present(sbs);