commit | d3eabb9d62f5968fd71c1cd92fdccb2790a65d14 | [log] [tgz] |
---|---|---|
author | Ady Abraham <adyabr@google.com> | Wed Dec 20 22:20:20 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Dec 20 22:20:20 2023 +0000 |
tree | f38f783981f0bce17f527d0b680b15c9ef22e650 | |
parent | de4a0bf44bf3531c3a788f009638fe5848bc3c57 [diff] | |
parent | 07a6e895fd1316f9359d94cbec10a50c3462f97f [diff] |
Merge "SF: fix redundant assignment operation." into main am: e0d0965baf am: 38e6377537 am: 07a6e895fd Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2877774 Change-Id: I6a7bb5db128188a38616f9ad10e4cbb205724553 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/services/surfaceflinger/DisplayHardware/HWC2.cpp b/services/surfaceflinger/DisplayHardware/HWC2.cpp index 24a9e22..704ece5 100644 --- a/services/surfaceflinger/DisplayHardware/HWC2.cpp +++ b/services/surfaceflinger/DisplayHardware/HWC2.cpp
@@ -165,8 +165,7 @@ auto intError = mComposer.getChangedCompositionTypes( mId, &layerIds, &types); uint32_t numElements = layerIds.size(); - auto error = static_cast<Error>(intError); - error = static_cast<Error>(intError); + const auto error = static_cast<Error>(intError); if (error != Error::NONE) { return error; }