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

Commit eed16d7a authored by Vladimir Komsiyski's avatar Vladimir Komsiyski Committed by Android (Google) Code Review
Browse files

Merge "Remove redundant array allocation." into udc-dev

parents bd63b5d9 2d061457
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -338,9 +338,7 @@ class InputController {
        }

        synchronized (mLock) {
            InputDeviceDescriptor[] values = mInputDeviceDescriptors.values().toArray(
                    new InputDeviceDescriptor[0]);
            for (InputDeviceDescriptor value : values) {
            for (InputDeviceDescriptor value : mInputDeviceDescriptors.values()) {
                if (value.mName.equals(deviceName)) {
                    throw new DeviceCreationException(
                            "Input device name already in use: " + deviceName);