OSDN Git Service

BatteryStats: Remove empty conditional.
authorNarayan Kamath <narayan@google.com>
Tue, 6 Feb 2018 13:26:46 +0000 (13:26 +0000)
committerNarayan Kamath <narayan@google.com>
Tue, 6 Feb 2018 13:26:46 +0000 (13:26 +0000)
This was accidentally left behind by change 8182202ac8 when the
statsd related logic was moved to the caller of the method in
question.

Test: make
Change-Id: I75f88aa239d84dfd57f64606059f41259b35c334

core/java/com/android/internal/os/BatteryStatsImpl.java

index 40dcf25..00fdefc 100644 (file)
@@ -9931,8 +9931,6 @@ public class BatteryStatsImpl extends BatteryStats {
             if (wl != null) {
                 StopwatchTimer wlt = getWakelockTimerLocked(wl, type);
                 wlt.stopRunningLocked(elapsedRealtimeMs);
-                if (!wlt.isRunningLocked()) { // only tell statsd if truly stopped
-                }
             }
             if (type == WAKE_TYPE_PARTIAL) {
                 if (mAggregatedPartialWakelockTimer != null) {