diff options
-rw-r--r-- | media/mtp/MtpProperty.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/media/mtp/MtpProperty.cpp b/media/mtp/MtpProperty.cpp index 3b38720..b095ce1 100644 --- a/media/mtp/MtpProperty.cpp +++ b/media/mtp/MtpProperty.cpp @@ -122,9 +122,8 @@ MtpProperty::~MtpProperty() { } void MtpProperty::read(MtpDataPacket& packet) { - bool deviceProp = isDeviceProperty(); - mCode = packet.getUInt16(); + bool deviceProp = isDeviceProperty(); mType = packet.getUInt16(); mWriteable = (packet.getUInt8() == 1); switch (mType) { |