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

Commit 3bc58cc9 authored by Roy Luo's avatar Roy Luo Committed by Automerger Merge Worker
Browse files

Merge "fastboot: remove retries on invalid IO iterator in OSX" am: be65e040...

Merge "fastboot: remove retries on invalid IO iterator in OSX" am: be65e040 am: 7f72b30e am: 679e670e

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2631070



Change-Id: I5a4b3316541268f4a8b985611e19311a623d9388
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents f37b7e9d 679e670e
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -436,12 +436,7 @@ static int init_usb(ifc_match_func callback, std::unique_ptr<usb_handle>* handle

    for (;;) {
        if (! IOIteratorIsValid(iterator)) {
            /*
             * Apple documentation advises resetting the iterator if
             * it should become invalid during iteration.
             */
            IOIteratorReset(iterator);
            continue;
            break;
        }

        io_service_t device = IOIteratorNext(iterator);