From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVmfu-0004iP-7d for qemu-devel@nongnu.org; Wed, 11 Mar 2015 15:52:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVmfo-0005UY-Fn for qemu-devel@nongnu.org; Wed, 11 Mar 2015 15:52:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVmfo-0005UR-6x for qemu-devel@nongnu.org; Wed, 11 Mar 2015 15:52:08 -0400 Date: Wed, 11 Mar 2015 20:51:55 +0100 From: "Michael S. Tsirkin" Message-ID: <20150311205155-mutt-send-email-mst@redhat.com> References: <1426096767-30494-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1426096767-30494-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 25/25] 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 , Peter Maydell , Ming Lei , Fam Zheng , Paolo Bonzini The anonymous struct only has a single field now, drop the wrapper structure. Suggested-by: Paolo Bonzini Signed-off-by: Michael S. Tsirkin Acked-by: Paolo Bonzini --- 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