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
This commit is contained in:
Gerd Hoffmann 2020-11-05 14:41:09 +01:00
parent 51d4e4228d
commit e315bfd1ba
1 changed files with 2 additions and 2 deletions

View File

@ -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(),
};