Skip to contentSkip to conversation

virtio-scsi: remove empty wrapper for cmd

PATCH In review Michael S. Tsirkin 2 participants 2 messages Mar 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-scsi: remove empty wrapper for cmd

The anonymous struct only has a single field now, drop the wrapper structure.

---
 include/hw/virtio/virtio-scsi.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
include/hw/virtio/virtio-scsi.h +1 -3
index e3f27a6..f93b57d 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines · Michael S. Tsirkin

The anonymous struct only has a single field now, drop the wrapper structure.

---
 include/hw/virtio/virtio-scsi.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
include/hw/virtio/virtio-scsi.h +0 -0
index e3f27a6..f93b57d 100644

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;