Do not obtain unused Parcel

Bug: 218835043
Test: make
Change-Id: I8fd5ae8afa1ba985e6766d1ae53947dfebf835e7
This commit is contained in:
Nikolas Havrikov
2022-02-10 15:08:51 +01:00
parent b0385bd966
commit 5bf28506d3

View File

@@ -787,7 +787,6 @@ public final class ProcessStatsService extends IProcessStats.Stub {
}
private SparseArray<long[]> getUidProcStateStatsOverTime(long minTime) {
final Parcel current = Parcel.obtain();
final ProcessStats stats = new ProcessStats();
long curTime;
synchronized (mLock) {