]> git.proxmox.com Git - mirror_qemu.git/commit
usb-mtp: use bool to track MTPObject init status
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 20 May 2014 10:54:08 +0000 (12:54 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 26 May 2014 06:41:07 +0000 (08:41 +0200)
commit36084d7e31997d0f4aec67e05c2ef44de89bc4de
tree8f85a2cf55bed59d2ecb4dc41b4ecdc1b3fe731a
parentf995523582c89cb0b89861bee0bd6264fd17ce3e
usb-mtp: use bool to track MTPObject init status

Stop setting nchildren to -1.  Use separate bool variable to track
whenever we've already fetched the child objects instead.

Also make nchildren unsigned.

Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-mtp.c