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>
This commit is contained in:
Michael S. Tsirkin 2015-03-11 15:10:09 +01:00
parent bb72463bc8
commit 18bf9e2f37
1 changed files with 1 additions and 3 deletions

View File

@ -134,9 +134,7 @@ typedef struct VirtIOSCSIReq {
VirtIOSCSIEvent event; VirtIOSCSIEvent event;
} resp; } resp;
union { union {
struct { VirtIOSCSICmdReq cmd;
VirtIOSCSICmdReq cmd;
} QEMU_PACKED;
VirtIOSCSICtrlTMFReq tmf; VirtIOSCSICtrlTMFReq tmf;
VirtIOSCSICtrlANReq an; VirtIOSCSICtrlANReq an;
} req; } req;