diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-11-05 14:41:09 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-11-16 09:11:21 +0100 |
commit | e315bfd1ba5ece5b8d3fc616219391f2d4b08778 (patch) | |
tree | 9d360e38e1caa4b78760c14e6789af20c029bfba /hw | |
parent | 51d4e4228d14927679b0b8c210156c04cb9dd6c7 (diff) | |
download | qemu-e315bfd1ba5ece5b8d3fc616219391f2d4b08778.zip qemu-e315bfd1ba5ece5b8d3fc616219391f2d4b08778.tar.gz qemu-e315bfd1ba5ece5b8d3fc616219391f2d4b08778.tar.bz2 |
usb-storage: use bool for removable property
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201105134112.25119-4-kraxel@redhat.com
Diffstat (limited to 'hw')
-rw-r--r-- | hw/usb/dev-storage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c index d5cc613..360e8ca 100644 --- a/hw/usb/dev-storage.c +++ b/hw/usb/dev-storage.c @@ -56,7 +56,7 @@ struct MSDState { USBPacket *packet; /* usb-storage only */ BlockConf conf; - uint32_t removable; + bool removable; bool commandlog; SCSIDevice *scsi_dev; }; @@ -682,7 +682,7 @@ static const VMStateDescription vmstate_usb_msd = { static Property msd_properties[] = { DEFINE_BLOCK_PROPERTIES(MSDState, conf), DEFINE_BLOCK_ERROR_PROPERTIES(MSDState, conf), - DEFINE_PROP_BIT("removable", MSDState, removable, 0, false), + DEFINE_PROP_BOOL("removable", MSDState, removable, false), DEFINE_PROP_BOOL("commandlog", MSDState, commandlog, false), DEFINE_PROP_END_OF_LIST(), }; |