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

Commit 29f3b2e4 authored by Daichi Hirono's avatar Daichi Hirono Committed by Android (Google) Code Review
Browse files

Merge "Remove redundant code to check container type." into nyc-dev

parents e492507c 95faffd3
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -679,11 +679,6 @@ bool MtpDevice::readData(ReadObjectCallback callback,
        return false;
    }

    if (mData.getContainerType() == MTP_CONTAINER_TYPE_RESPONSE) {
        mResponse.copyFrom(mData);
        return mResponse.getResponseCode() == MTP_RESPONSE_OK ? 0 : -1;
    }

    // If object size 0 byte, the remote device can reply response packet
    // without sending any data packets.
    if (mData.getContainerType() == MTP_CONTAINER_TYPE_RESPONSE) {