apm_power: check I.intval for zero value, we use it as the divisor

Signed-off-by: Anton Vorontsov <cbou@mail.ru>

+3
+3
drivers/power/apm_power.c
··· 133 133 return -1; 134 134 } 135 135 136 + if (!I.intval) 137 + return 0; 138 + 136 139 switch (source) { 137 140 case SOURCE_CHARGE: 138 141 full_prop = POWER_SUPPLY_PROP_CHARGE_FULL;