[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/6] usb-storage: use bool for removable property
From: |
Gerd Hoffmann |
Subject: |
[PULL 3/6] usb-storage: use bool for removable property |
Date: |
Mon, 16 Nov 2020 12:10:33 +0100 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201105134112.25119-4-kraxel@redhat.com
---
hw/usb/dev-storage.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c
index d5cc6137443c..360e8ca8f2bd 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(),
};
--
2.27.0
- [PULL 0/6] Fixes 20201116 patches, Gerd Hoffmann, 2020/11/16
- [PULL 3/6] usb-storage: use bool for removable property,
Gerd Hoffmann <=
- [PULL 2/6] usb-storage: add commandlog property, Gerd Hoffmann, 2020/11/16
- [PULL 4/6] usb-storage: fill csw on cancel, Gerd Hoffmann, 2020/11/16
- [PULL 1/6] usb-storage: switch trace events, Gerd Hoffmann, 2020/11/16
- [PULL 5/6] xhci: fix guest triggerable assert, Gerd Hoffmann, 2020/11/16
- [PULL 6/6] xhci: move sanity checks, Gerd Hoffmann, 2020/11/16
- Re: [PULL 0/6] Fixes 20201116 patches, Peter Maydell, 2020/11/16