virtio-scsi: remove empty wrapper for cmd
PATCH 1/1 virtio-scsi: remove empty wrapper for cmd
The anonymous struct only has a single field now, drop the wrapper structure.
Suggested-by Paolo Bonzini <[email protected]>
Signed-off-by Michael S. Tsirkin <[email protected]>
--- include/hw/virtio/virtio-scsi.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
include/hw/virtio/virtio-scsi.h +1 -3
@@ -134,9 +134,7 @@ typedef struct VirtIOSCSIReq {VirtIOSCSIEvent event; } resp;union { -struct { -VirtIOSCSICmdReq cmd; - } QEMU_PACKED; +VirtIOSCSICmdReq cmd;VirtIOSCSICtrlTMFReq tmf;VirtIOSCSICtrlANReq an; } req;
Signature · 1 line
MST
Quoted 15 lines · Michael S. Tsirkin
The anonymous struct only has a single field now, drop the wrapper structure.
Suggested-by Paolo Bonzini <[email protected]>Signed-off-by Michael S. Tsirkin <[email protected]>--- include/hw/virtio/virtio-scsi.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)include/hw/virtio/virtio-scsi.h +0
-0
include/hw/virtio/virtio-scsi.h typedef struct VirtIOSCSIReq { · line 140
Quoted 10 lines
include/hw/virtio/virtio-scsi.h +1
-3@@ -134,9 +134,7 @@ typedef struct VirtIOSCSIReq {VirtIOSCSIEvent event; } resp;union { -struct { -VirtIOSCSICmdReq cmd; - } QEMU_PACKED; +VirtIOSCSICmdReq cmd;VirtIOSCSICtrlTMFReq tmf;VirtIOSCSICtrlANReq an; } req;
Acked-by Paolo Bonzini <[email protected]>