aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/power/apm_power.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/power/apm_power.c b/drivers/power/apm_power.c
index a832a9a05c66..a4892275659d 100644
--- a/drivers/power/apm_power.c
+++ b/drivers/power/apm_power.c
@@ -133,6 +133,9 @@ static int do_calculate_time(int status, enum apm_source source)
133 return -1; 133 return -1;
134 } 134 }
135 135
136 if (!I.intval)
137 return 0;
138
136 switch (source) { 139 switch (source) {
137 case SOURCE_CHARGE: 140 case SOURCE_CHARGE:
138 full_prop = POWER_SUPPLY_PROP_CHARGE_FULL; 141 full_prop = POWER_SUPPLY_PROP_CHARGE_FULL;