diff options
author | Paul Durrant <paul.durrant@citrix.com> | 2018-05-17 16:35:58 +0100 |
---|---|---|
committer | Stefano Stabellini <sstabellini@kernel.org> | 2018-05-22 11:43:22 -0700 |
commit | 443c3c9cf1a18afcc705745d18101a4ea4de5b26 (patch) | |
tree | f9a46aa70feaefc5db59abd7832788e68306d100 /hw/net | |
parent | 5ebf96265244e720d56367703a752f05010b7d55 (diff) | |
download | qemu-443c3c9cf1a18afcc705745d18101a4ea4de5b26.zip qemu-443c3c9cf1a18afcc705745d18101a4ea4de5b26.tar.gz qemu-443c3c9cf1a18afcc705745d18101a4ea4de5b26.tar.bz2 |
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>
Diffstat (limited to 'hw/net')
0 files changed, 0 insertions, 0 deletions