changeset 344:562fa85c8963

FCHG battery table loading: comparison signedness issue
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 15 Dec 2017 19:58:18 +0000
parents e0b27310e6ba
children 3a7810ca74e2
files src/cs/drivers/drv_app/fchg/fchg_ffs_init.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/fchg/fchg_ffs_init.c	Fri Dec 15 19:13:22 2017 +0000
+++ b/src/cs/drivers/drv_app/fchg/fchg_ffs_init.c	Fri Dec 15 19:58:18 2017 +0000
@@ -37,7 +37,7 @@
 
 	rc = ffs_file_read("/etc/batterytab", pwr_ctrl->batt_thresholds,
 			   sizeof(pwr_ctrl->batt_thresholds));
-	if (rc >= sizeof(T_PWR_THRESHOLDS)) {
+	if (rc >= (int)sizeof(T_PWR_THRESHOLDS)) {
 		pwr_ctrl->nb_thresholds = rc / sizeof(T_PWR_THRESHOLDS);
 		rvf_send_trace("FCHG: battery table loaded from FFS", 35,
 				NULL_PARAM, RV_TRACE_LEVEL_DEBUG_HIGH,