aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/pci.c
diff options
context:
space:
mode:
authorCai Huoqing <[email protected]>2022-02-09 03:28:41 +0000
committerJuergen Gross <[email protected]>2022-02-10 10:10:23 +0000
commitf66edf684edcb85c1db0b0aa8cf1a9392ba68a9d (patch)
tree1114dbc5ece22777b7c2b7f14eef129b67c619ad /drivers/xen/pci.c
parentxen/x2apic: Fix inconsistent indenting (diff)
downloadkernel-f66edf684edcb85c1db0b0aa8cf1a9392ba68a9d.tar.gz
kernel-f66edf684edcb85c1db0b0aa8cf1a9392ba68a9d.zip
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 <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'drivers/xen/pci.c')
-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)
{