projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afea27d
)
xen/pci: Make use of the helper macro LIST_HEAD()
author
Cai Huoqing
<cai.huoqing@linux.dev>
Wed, 9 Feb 2022 03:28:41 +0000
(11:28 +0800)
committer
Juergen Gross
<jgross@suse.com>
Thu, 10 Feb 2022 10:10:23 +0000
(11:10 +0100)
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>
drivers/xen/pci.c
patch
|
blob
|
history
diff --git
a/drivers/xen/pci.c
b/drivers/xen/pci.c
index 2c890f4f2cbcb609616b077d4b2fecc7b579ff19..72d4e3f193af1ba5f7ffd704cd353ac1abddfd4b 100644
(file)
--- 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)
{