Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e911b7d authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge "healthd: BatteryMonitor: Fix compiler warning"

am: abd66279

Change-Id: I7d36a761bbf34505223ddac77909802481aaa77e
parents 0df54b8f abd66279
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -240,10 +240,9 @@ bool BatteryMonitor::update(void) {
    if (readFromFile(mHealthdConfig->batteryTechnologyPath, &buf) > 0)
        props.batteryTechnology = String8(buf.c_str());

    unsigned int i;
    double MaxPower = 0;

    for (i = 0; i < mChargerNames.size(); i++) {
    for (size_t i = 0; i < mChargerNames.size(); i++) {
        String8 path;
        path.appendFormat("%s/%s/online", POWER_SUPPLY_SYSFS_PATH,
                          mChargerNames[i].string());