summaryrefslogtreecommitdiff
path: root/drivers/xen
diff options
context:
space:
mode:
authorCai Huoqing <cai.huoqing@linux.dev>2022-02-09 11:28:41 +0800
committerJuergen Gross <jgross@suse.com>2022-02-10 11:10:23 +0100
commitf66edf684edcb85c1db0b0aa8cf1a9392ba68a9d (patch)
tree1114dbc5ece22777b7c2b7f14eef129b67c619ad /drivers/xen
parentafea27dc3105004080c3127c6570dc3dff8563b2 (diff)
xen/pci: Make use of the helper macro LIST_HEAD()
Replace "struct list_head head = LIST_HEAD_INIT(head)" with "LIST_HEAD(head)" to simplify the code. Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev> Reviewed-by: Juergen Gross <jgross@suse.com> Link: https://lore.kernel.org/r/20220209032842.38818-1-cai.huoqing@linux.dev Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/pci.c b/drivers/xen/pci.c
index 2c890f4f2cbc..72d4e3f193af 100644
--- a/drivers/xen/pci.c
+++ b/drivers/xen/pci.c
@@ -264,7 +264,7 @@ struct xen_device_domain_owner {
};
static DEFINE_SPINLOCK(dev_domain_list_spinlock);
-static struct list_head dev_domain_list = LIST_HEAD_INIT(dev_domain_list);
+static LIST_HEAD(dev_domain_list);
static struct xen_device_domain_owner *find_device(struct pci_dev *dev)
{