usb-mtp: refactor the flow of usb_mtp_write_data
commite39b8a66d2af913e873256aa77ea71a179dfe5e0
authorBandan Das <bsd@redhat.com>
Mon, 1 Apr 2019 21:17:12 +0000 (1 17:17 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 7 Jun 2019 16:56:14 +0000 (7 18:56 +0200)
tree2015946e2fcf0c0e8f1f0fef9d7f0fe96f219a10
parent442bac16a6cd708a9f87adb0a263f9d833f03ed5
usb-mtp: refactor the flow of usb_mtp_write_data

There's no functional change but the flow is (hopefully)
more consistent for both file and folder object types.

Signed-off-by: Bandan Das <bsd@redhat.com>
Message-Id: <20190401211712.19012-4-bsd@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-mtp.c