Skip to content

Commit

Permalink
xen/pci: Make use of the helper macro LIST_HEAD()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
caihuoq authored and jgross1 committed Feb 10, 2022
1 parent afea27d commit f66edf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/xen/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit f66edf6

Please sign in to comment.