Skip to content

Commit

Permalink
Drivers: hv: utils: Make use of the helper macro LIST_HEAD()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cai Huoqing authored and Wei Liu committed Feb 9, 2022
1 parent 6bf625a commit ffc58bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hv/hv_utils_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit ffc58bc

Please sign in to comment.