]> git.baikalelectronics.ru Git - kernel.git/commit
xen/pci: Make use of the helper macro LIST_HEAD()
authorCai Huoqing <cai.huoqing@linux.dev>
Wed, 9 Feb 2022 03:28:41 +0000 (11:28 +0800)
committerJuergen Gross <jgross@suse.com>
Thu, 10 Feb 2022 10:10:23 +0000 (11:10 +0100)
commit5f7d98501b34e8bb52b8e2b9277b62a72870ea3a
tree1114dbc5ece22777b7c2b7f14eef129b67c619ad
parent0962189c55699ec6fded31a2a6692a886898ed5d
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 <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