Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58bac9e7 authored by Jamie Gennis's avatar Jamie Gennis Committed by Mathias Agopian
Browse files

Fix the ISurfaceComposer onTransact switch.

Two of the cases in the ISurfaceComposer onTransact switch statement
were missing 'break' statements at the end, and would fall through to
the next case block. This change adds those break statements.

Change-Id: I6dcc84263d3ea03d94612c667103283846b3dee1
parent 4a2e478a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -247,13 +247,13 @@ status_t BnSurfaceComposer::onTransact(
            int32_t mode = data.readInt32();
            status_t res = turnElectronBeamOff(mode);
            reply->writeInt32(res);
        }
        } break;
        case TURN_ELECTRON_BEAM_ON: {
            CHECK_INTERFACE(ISurfaceComposer, data, reply);
            int32_t mode = data.readInt32();
            status_t res = turnElectronBeamOn(mode);
            reply->writeInt32(res);
        }
        } break;
        default:
            return BBinder::onTransact(code, data, reply, flags);
    }