diff options
| author | 2023-12-20 10:18:16 +0800 | |
|---|---|---|
| committer | 2023-12-20 10:18:16 +0800 | |
| commit | d1bb314de76032e420573690a0d15c20fa2363ca (patch) | |
| tree | c9925c8a39b3ce6204519e3bd230861fb18f2612 | |
| parent | 7b05d26f3fee877185cc4889ade918ec38dbcf76 (diff) | |
SF: fix redundant assignment operation.
Bug:none
Test:reboot
Change-Id: I9618284bd99f731bef834e301e4a6bbb94266cfe
Signed-off-by: linkai <linkai@xiaomi.com>
| -rw-r--r-- | services/surfaceflinger/DisplayHardware/HWC2.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/services/surfaceflinger/DisplayHardware/HWC2.cpp b/services/surfaceflinger/DisplayHardware/HWC2.cpp index aaf2523338..8a6a67a547 100644 --- a/services/surfaceflinger/DisplayHardware/HWC2.cpp +++ b/services/surfaceflinger/DisplayHardware/HWC2.cpp @@ -165,8 +165,7 @@ Error Display::getChangedCompositionTypes(std::unordered_map<HWC2::Layer*, Compo 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; } |