]> git.proxmox.com Git - mirror_qemu.git/commit
xen_disk: be consistent with use of xendev and blkdev->xendev
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 17 May 2018 15:35:58 +0000 (16:35 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 22 May 2018 18:43:22 +0000 (11:43 -0700)
commit443c3c9cf1a18afcc705745d18101a4ea4de5b26
treef9a46aa70feaefc5db59abd7832788e68306d100
parent5ebf96265244e720d56367703a752f05010b7d55
xen_disk: be consistent with use of xendev and blkdev->xendev

Certain functions in xen_disk are called with a pointer to xendev
(struct XenDevice *). They then use container_of() to acces the surrounding
blkdev (struct XenBlkDev) but then in various places use &blkdev->xendev
when use of the original xendev pointer is shorter to express and clearly
equivalent.

This patch is a purely cosmetic patch which makes sure there is a xendev
pointer on stack for any function where the pointer is need on multiple
occasions modified those functions to use it consistently.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/block/xen_disk.c