Skip to content

Commit f66edf6

Browse files
caihuoqjgross1
authored andcommitted
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]>
1 parent afea27d commit f66edf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/xen/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ struct xen_device_domain_owner {
264264
};
265265

266266
static DEFINE_SPINLOCK(dev_domain_list_spinlock);
267-
static struct list_head dev_domain_list = LIST_HEAD_INIT(dev_domain_list);
267+
static LIST_HEAD(dev_domain_list);
268268

269269
static struct xen_device_domain_owner *find_device(struct pci_dev *dev)
270270
{

0 commit comments

Comments
 (0)