charger-manager: Use replacement variable to check state of battery

This patch remove unnecessary variable(cm->fullbatt_vchk_uV) by using
'desc->fullbatt_uV' field directly in fullbatt_handler() function
to check the state of battery.

Signed-off-by: Chanwoo Choi <[email protected]>
Signed-off-by: Myungjoo Ham <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
Chanwoo Choi 2012-07-27 14:01:37 +09:00 • committed by Anton Vorontsov
commit fd65ee5f1c
2 changed files with 1 additions and 4 deletions

View file

@ -415,7 +415,7 @@ static void fullbatt_vchk(struct work_struct *work)
return;
}
diff = cm->fullbatt_vchk_uV;
diff = desc->fullbatt_uV;
diff -= batt_uV;
dev_dbg(cm->dev, "VBATT dropped %duV after full-batt.\n", diff);