Commit ffc58bc4 authored by Cai Huoqing's avatar Cai Huoqing Committed by Wei Liu

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: default avatarCai Huoqing <cai.huoqing@linux.dev>
Link: https://lore.kernel.org/r/20220209032251.37362-1-cai.huoqing@linux.devSigned-off-by: default avatarWei Liu <wei.liu@kernel.org>
parent 6bf625a4
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment