mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
Drivers: hv: utils: 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> Link: https://lore.kernel.org/r/20220209032251.37362-1-cai.huoqing@linux.dev Signed-off-by: Wei Liu <wei.liu@kernel.org>
This commit is contained in:
parent
6bf625a414
commit
ffc58bc4af
@ -13,7 +13,7 @@
|
||||
#include "hv_utils_transport.h"
|
||||
|
||||
static DEFINE_SPINLOCK(hvt_list_lock);
|
||||
static struct list_head hvt_list = LIST_HEAD_INIT(hvt_list);
|
||||
static LIST_HEAD(hvt_list);
|
||||
|
||||
static void hvt_reset(struct hvutil_transport *hvt)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user