diff options
| author | Cai Huoqing <[email protected]> | 2022-02-09 03:28:41 +0000 |
|---|---|---|
| committer | Juergen Gross <[email protected]> | 2022-02-10 10:10:23 +0000 |
| commit | f66edf684edcb85c1db0b0aa8cf1a9392ba68a9d (patch) | |
| tree | 1114dbc5ece22777b7c2b7f14eef129b67c619ad /drivers/xen/pci.c | |
| parent | xen/x2apic: Fix inconsistent indenting (diff) | |
| download | kernel-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.c | 2 |
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) { |
