Received: from eggs.gnu.org ([2001:4830:134:3::10]:36825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVhOO-000103-Js for qemu-devel@nongnu.org; Wed, 11 Mar 2015 10:13:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVhOJ-0000o1-1J for qemu-devel@nongnu.org; Wed, 11 Mar 2015 10:13:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVhOI-0000nq-Qa for qemu-devel@nongnu.org; Wed, 11 Mar 2015 10:13:42 -0400 Date: Wed, 11 Mar 2015 15:13:31 +0100 From: "Michael S. Tsirkin" Message-ID: <20150311151331-mutt-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] virtio-scsi: remove empty wrapper for cmd List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Cornelia Huck , Paolo Bonzini , Ming Lei , Fam Zheng The anonymous struct only has a single field now, drop the wrapper structure. Suggested-by: Paolo Bonzini Signed-off-by: Michael S. Tsirkin --- include/hw/virtio/virtio-scsi.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/hw/virtio/virtio-scsi.h b/include/hw/virtio/virtio-scsi.h index e3f27a6..f93b57d 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; -- MST