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

Commit 1c88236e authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Remove unnecessary synchronized block

The `mLogGroups` field is not modified when this code executes.

Flag: EXEMPT minor change
Change-Id: I8486185444b7ef3581f32d042a31605bf890cac2
parent c0bd84ed
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -247,13 +247,11 @@ public abstract class PerfettoProtoLogImpl extends IProtoLogClient.Stub implemen
                args.groups = new String[groups.length];
                args.groupsDefaultLogcatStatus = new boolean[groups.length];

                synchronized (mLogGroupsLock) {
                for (var i = 0; i < groups.length; i++) {
                    var group = groups[i];
                    args.groups[i] = group.name();
                    args.groupsDefaultLogcatStatus[i] = group.isLogToLogcat();
                }
                }

                mConfigurationService.registerClient(this, args);
            } catch (RemoteException e) {