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:
Cai Huoqing 2022-02-09 11:22:51 +08:00 committed by Wei Liu
parent 6bf625a414
commit ffc58bc4af
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
#include "hv_utils_transport.h" #include "hv_utils_transport.h"
static DEFINE_SPINLOCK(hvt_list_lock); 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) static void hvt_reset(struct hvutil_transport *hvt)
{ {