Merge "SurfaceFlinger: remove a redundant nullptr check" into sc-dev
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index df14003..87ca9c7 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -867,9 +867,7 @@
void Layer::popPendingState(State* stateToCommit) {
ATRACE_CALL();
- if (stateToCommit != nullptr) {
- mergeSurfaceFrames(*stateToCommit, mPendingStates[0]);
- }
+ mergeSurfaceFrames(*stateToCommit, mPendingStates[0]);
*stateToCommit = mPendingStates[0];
mPendingStates.pop_front();
ATRACE_INT(mTransactionName.c_str(), mPendingStates.size());