Skip to content

Commit

Permalink
virtio-scsi: remove empty wrapper for cmd
Browse files Browse the repository at this point in the history
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]>
Acked-by: Paolo Bonzini <[email protected]>
  • Loading branch information
mstsirkin committed Mar 11, 2015
1 parent bb72463 commit 18bf9e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/hw/virtio/virtio-scsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ typedef struct VirtIOSCSIReq {
VirtIOSCSIEvent event;
} resp;
union {
struct {
VirtIOSCSICmdReq cmd;
} QEMU_PACKED;
VirtIOSCSICmdReq cmd;
VirtIOSCSICtrlTMFReq tmf;
VirtIOSCSICtrlANReq an;
} req;
Expand Down

0 comments on commit 18bf9e2

Please sign in to comment.