From: Adrian Bunk <bunk@xxxxxxxxx> Remove dead code spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx> Cc: Vladimir Lebedev <vladimir.p.lebedev@xxxxxxxxx> Cc: Len Brown <len.brown@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/acpi/sbs.c | 6 +----- 1 files changed, 1 insertion(+), 5 deletions(-) diff -puN drivers/acpi/sbs.c~drivers-acpi-sbsc-remove-dead-code drivers/acpi/sbs.c --- a/drivers/acpi/sbs.c~drivers-acpi-sbsc-remove-dead-code +++ a/drivers/acpi/sbs.c @@ -1409,7 +1409,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)) { @@ -1429,10 +1429,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); _ - To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html