aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2015-03-11 15:10:09 +0100
committerMichael S. Tsirkin <mst@redhat.com>2015-03-11 18:24:30 +0100
commit18bf9e2f379334306530cbfd44218748eceaf67d (patch)
tree8f2bf959704611a42c3342673203b599e5863336
parentbb72463bc80d90d104a996a111dd8bb39bff58d0 (diff)
virtio-scsi: remove empty wrapper for cmd
The anonymous struct only has a single field now, drop the wrapper structure. Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--include/hw/virtio/virtio-scsi.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/hw/virtio/virtio-scsi.h b/include/hw/virtio/virtio-scsi.h
index e3f27a6995..f93b57d3e9 100644
--- a/include/hw/virtio/virtio-scsi.h
+++ b/include/hw/virtio/virtio-scsi.h
@@ -134,9 +134,7 @@ typedef struct VirtIOSCSIReq {
VirtIOSCSIEvent event;
} resp;
union {
- struct {
- VirtIOSCSICmdReq cmd;
- } QEMU_PACKED;
+ VirtIOSCSICmdReq cmd;
VirtIOSCSICtrlTMFReq tmf;
VirtIOSCSICtrlANReq an;
} req;